diff --git a/app/config/config-default.js b/app/config/config-default.js index 7221c0df..8b1db9d0 100644 --- a/app/config/config-default.js +++ b/app/config/config-default.js @@ -116,5 +116,10 @@ module.exports = { // in development, you can create a directory under // `~/.hyper_plugins/local/` and include it here // to load it and avoid it being `npm install`ed - localPlugins: [] + localPlugins: [], + + keymaps: { + // Example + // 'window:devtools': 'cmd+alt+o', + } }; diff --git a/website/index.html b/website/index.html index 871c07a5..f2b5c255 100644 --- a/website/index.html +++ b/website/index.html @@ -677,6 +677,23 @@

You can also take a look at Awesome Hyper for a curated list of plugins and resources.

+ +

Keymaps

+ +

All command keys can be changed. In order to change them, edit + ~/.hyper.js and add your desired change to keymaps. +

+

Then Hyper will change the default with your custom change.

+

Example: 'window:devtools': 'Cmd+Alt+O'

+

module.exports = {
+  config: { /*... */ },
+
+  keymaps: {
+    'window:devtools': 'cmd+alt+o'
+  }
+
+};
+

Configuration

@@ -1637,4 +1654,4 @@ exports.mapTermsState = (state, map) => { }); - + \ No newline at end of file