private void AcquireBuiltInCommands() { _remoteCommandsManager.Add(new ActionCommandInvoker(this, nameof(Keybindings), "FindCommand", EnterFindMode)); _remoteCommandsManager.Add(new ActionCommandInvoker(this, nameof(Keybindings), "Settings", OpenSettings)); _remoteCommandsManager.Add(new ActionCommandInvoker(this, nameof(Keybindings), "ReloadPlugin", ReloadPlugin)); }
private void CreateAction(string ns, string jsaName, Action fn) { _remoteCommandsManager.Add(new ActionCommandInvoker(_owner, ns, jsaName, fn)); }