Skip to content

Commit

Permalink
Add a note about binding multiple keys (#5015)
Browse files Browse the repository at this point in the history
* Add a note about Binding multiple keys

From discussion in #4992

* Update doc/user-docs/UsingJsonSettings.md

Co-Authored-By: Josh Soref <[email protected]>

* update the comment here to be a little clearer

Co-authored-by: Josh Soref <[email protected]>
  • Loading branch information
zadjii-msft and jsoref authored Mar 27, 2020
1 parent 5bcf0fc commit 8c4ca46
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions doc/user-docs/UsingJsonSettings.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,22 @@ add the following to your keybindings:
This will _unbind_ <kbd>Ctrl+Shift+6</kbd>, allowing vim to use the keystroke
instead of the terminal.

### Binding multiple keys

You can have multiple key chords bound to the same action. To do this, simply
add multiple bindings for the same action. For example:

```json
"keybindings" :
[
{ "command": "copy", "keys": "ctrl+shift+c" },
{ "command": "copy", "keys": "ctrl+c" },
{ "command": "copy", "keys": "enter" }
]
```

In this snippet, all three of <kbd>ctrl+shift+c</kbd>, <kbd>ctrl+c</kbd> and <kbd>enter</kbd> are bound to `copy`.

## Profiles

A profile contains the settings applied when a new WT tab is opened. Each
Expand Down

0 comments on commit 8c4ca46

Please sign in to comment.