Skip to content

Commit 99fdbce

Browse files
authored
docs: remove mention that - requires special handling (#12250)
1 parent 9b14750 commit 99fdbce

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

book/src/remapping.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ Special keys are encoded as follows:
9494
| Backspace | `"backspace"` |
9595
| Space | `"space"` |
9696
| Return/Enter | `"ret"` |
97-
| \- | `"minus"` |
9897
| Left | `"left"` |
9998
| Right | `"right"` |
10099
| Up | `"up"` |
@@ -110,3 +109,14 @@ Special keys are encoded as follows:
110109
| Escape | `"esc"` |
111110

112111
Keys can be disabled by binding them to the `no_op` command.
112+
113+
All other keys such as `?`, `!`, `-` etc. can be used literally:
114+
115+
```toml
116+
[keys.normal]
117+
"?" = ":write"
118+
"!" = ":write"
119+
"-" = ":write"
120+
```
121+
122+
Note: `-` can't be used when combined with a modifier, for example `Alt` + `-` should be written as `A-minus`. `A--` is not accepted.

0 commit comments

Comments
 (0)