UI.addMenuItem(path, shortcut, callback)
Add a menu item at the given path.
- path String – the path of the new menu item.
- shortcut String – keyboard shortcut, e.g. `ctrl-alt-cmd-b`.
- callback Function – a callback to be executed when the menu item is selected.
UI.addKeyboardShortcut(shortcut, callback)
Add a keyboard shortcut.
- shortcut String – the keyboard shortcut, e.g. `ctrl-alt-cmd-b`
- callback Function – the callback function to execute.
UI.addStatusItem(name, valueFunction, selector)
Add an item in the bottom status bar.
- name String – the name of the item to add.
- valueFunction Function – a function that will return the value to display in the status bar.
- selector String – a scope selector e.g. `source.objc`
|