Electron Command Palette
A nice-looking command palette for Electron
Features
- Searchable
- Highly customizable *
- Show Title - Description - Shortcut and Category
- Register local shortcuts *
- Register custom actions on click *
* planned feature
Installation
$ npm install --save electron-command-palette
Usage
Mandatory
renderer.js :
const CmdPalette = ; let palette = ;
Add commands
const cmds = ; //JSON stylepalette; //inline stylepalette
commands.json :
Register functions
renderer.js:
const functions = ; //Module stylepalette; //Inline stylepalette;
functions.js:
moduleexports = "key" : "newproject" { console; } "key" : "openproject" { console; } ;
Display
palette;palette;
TODO
- Tidy repo
- Register functions
- register shortcuts
- Trigger correct action on click
- Fix bad fuzzy search
- Customization options (position, CSS classes, themes)
Contributors
License
MIT © Armaldio