@angularforge/command-palette
Configuration
All options accepted by provideCommandPalette().
provideCommandPalette({
/** Keyboard shortcut(s) to open the palette. Default: ['meta+k', 'ctrl+k'] */
shortcut: 'meta+k',
/** Close when Escape is pressed. Default: true */
closeOnEscape: true,
/** Enable fuzzy character matching. Default: true */
fuzzySearch: true,
/** Placeholder text inside the search input. */
placeholder: 'Search commands…',
/** Maximum visible results. Default: 50 */
maxResults: 50,
});Multiple Shortcuts
shortcut accepts a string or an array of strings. All default shortcuts are replaced when you provide your own:
provideCommandPalette({
shortcut: ['meta+k', 'ctrl+k', 'meta+shift+p'],
});Shortcut String Format
meta | |
cmd | meta |
ctrl / control | |
alt / option | |
shift | |
k , p , etc. |