Command Palette Plugin
The CommandPalettePlugin provides a fuzzy command palette, loaded with all the ICommands registered with the ICommandManager.
The command palette uses a port of Visual Studio Code's fuzzy search algorithm.
Configuration
The CommandPaletteConfig can be used to configure the command palette. The ActivationConfig can be used to configure the default commands and matcher to use.
Custom instances of the command palette can be activated by calling Activate(BaseVariantConfig?).
Example Config
#r "WHIM_PATH\whim.dll"
#r "WHIM_PATH\plugins\Whim.CommandPalette\Whim.CommandPalette.dll"
using Whim;
using Whim.CommandPalette;
void DoConfig(IContext context)
{
// ...
CommandPaletteConfig commandPaletteConfig = new(context);
CommandPalettePlugin commandPalettePlugin = new(context, commandPaletteConfig);
context.PluginManager.AddPlugin(commandPalettePlugin);
// ...
}
return DoConfig;
Commands
Identifier | Title | Keybind |
---|---|---|
whim.command_palette.toggle |
Toggle command palette | Win + Shift + K |
whim.command_palette.activate_workspace |
Activate workspace | No default keybind |
whim.command_palette.rename_workspace |
Rename workspace | No default keybind |
whim.command_palette.create_workspace |
Create workspace | No default keybind |
whim.command_palette.move_window_to_workspace |
Move window to workspace | No default keybind |
whim.command_palette.move_multiple_windows_to_workspace |
Move multiple windows to workspace | No default keybind |
whim.command_palette.remove_window |
Select window to remove from Whim | No default keybind |
whim.command_palette.find_focus_window |
Find and focus window | No default keybind |