From ab703b5bf2b677e1220af0ba37a7400dec899e0f Mon Sep 17 00:00:00 2001 From: Philippe Potvin Date: Wed, 14 Jun 2017 21:03:41 -0400 Subject: [PATCH] Add docs for keys modification (#1937) * Add keymaps docs to website * de-beautify --- app/config/config-default.js | 7 ++++++- website/index.html | 19 ++++++++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) 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