diff --git a/PLUGINS.md b/PLUGINS.md index b115f027..c08a7c93 100644 --- a/PLUGINS.md +++ b/PLUGINS.md @@ -89,7 +89,7 @@ exports.decorateKeymaps = keymaps => { } ``` The command name can be whatever you want, but the following is better to respect the default naming convention: `:`. -Hotkeys are composed by (Mousetrap supported keys)[https://craig.is/killing/mice#keys]. +Hotkeys are composed by [Mousetrap supported keys](https://craig.is/killing/mice#keys). **Bonus feature**: if your command ends with `:prefix`, it would mean that you want to use this command with an additional digit to the command. Then Hyper will create all your commands under the hood. For example, this keymap `'pane:hide:prefix': 'ctrl+shift'` will automatically generate the following: ``` @@ -129,7 +129,7 @@ rpc.on('command pane:snapshot', () => { ### Menu Your plugin can expose a `decorateMenu` function to modify the Hyper menu template. -Check the (Electron documentation)[https://electronjs.org/docs/api/menu-item] for more details about the different menu item types/options available. +Check the [Electron documentation](https://electronjs.org/docs/api/menu-item) for more details about the different menu item types/options available. Be careful, a click handler will be executed on the main process. If you need to trigger a handler in the render process you need to use an `rpc` message like this: ```js