Namespace: core/commands.
Selectors
getCommandLoaders
Returns the registered command loaders.
Parameters
- state
State: State tree. - contextual
boolean: Whether to return only contextual command loaders.
Returns
- The list of registered command loaders.
getCommands
Returns the registered static commands.
Parameters
- state
State: State tree. - contextual
boolean: Whether to return only contextual commands.
Returns
- The list of registered commands.
getContext
Returns whether the active context.
Parameters
- state
State: State tree.
Returns
- Context.
isOpen
Returns whether the command palette is open.
Parameters
- state
State: State tree.
Returns
- Returns whether the command palette is open.
Actions
close
Closes the command palette.
Returns
- action.
open
Opens the command palette.
Returns
- action.
registerCommand
Returns an action object used to register a new command.
Parameters
- config
CommandConfig: Command config.
Returns
- action.
registerCommandLoader
Register command loader.
Parameters
- config
CommandLoaderConfig: Command loader config.
Returns
- action.
unregisterCommand
Returns an action object used to unregister a command.
Parameters
- name
string: Command name.
Returns
- action.
unregisterCommandLoader
Unregister command loader hook.
Parameters
- name
string: Command loader name.
Returns
- action.
