hyper-keymap v0.1.0
hyper-keymap
Hotkeys management for Hyper
Install
Open your Hyper preferences and add hyper-keymap to plugin list:
plugins: [
'hyper-keymap'
],Or use hpm
npm install -g hpm
hpm i hyper-keymap🤔 Caveats
Some hotkeys can still not be working, like CmdOrCtrl+Alt+Left,
because right now Hyper (v0.8.3) is binding this and several others keys.
Those keys are semi-working.
Though, 🎉 good news, i submitted pull-request to Hyper to fix that. Check it out, and if you want comment there what do you think about it 🗯. Any feedback is welcomed.
Usage
There is a default keymap, which is used by Hyper.
In order to change hotkeys you are unhappy with, add keymap object to your config:
module.exports = {
config: {
// other configuration
keymap: {
// just examples, see below for detailed explanation
'CmdOrCtrl+Alt+Left': 'prev-pane',
'CmdOrCtrl+Alt+Right': 'next-pane',
},
},
plugins: [
'hyper-keymap'
// you can have another plugins as well
],
};Keymap is an object of Electron's accelerator and Hyper's command.
keymap: {
// 'accelerator' : 'Hyper command'
'CmdOrCtrl+Alt+Left': 'prev-pane',
}Your keymap has prio over default one.
Electron's accelerators
It is a way to define keyboard shortcuts.
Accelerators can contain multiple modifiers and key codes, combined by the + character.
Examples:
CommandOrControl+ACommandOrControl+Shift+Z
Check out Electron's accelerators documentation.
List of supported Hyper commands
show-settingsnew-windownew-tabsplit-verticalsplit-horizontalcloseclose-windowclearshow-settingsreloadreload-fulltoggle-devtoolszoom-resetzoom-inzoom-outupdate-pluginsprev-tabnext-tabprev-panenext-pane
License
MIT © Vladimir Starkov
9 years ago