Skip to content

Commit

Permalink
docs: remove mention that - requires special handling (helix-editor…
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-rev authored Dec 16, 2024
1 parent 9b14750 commit 99fdbce
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion book/src/remapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ Special keys are encoded as follows:
| Backspace | `"backspace"` |
| Space | `"space"` |
| Return/Enter | `"ret"` |
| \- | `"minus"` |
| Left | `"left"` |
| Right | `"right"` |
| Up | `"up"` |
Expand All @@ -110,3 +109,14 @@ Special keys are encoded as follows:
| Escape | `"esc"` |

Keys can be disabled by binding them to the `no_op` command.

All other keys such as `?`, `!`, `-` etc. can be used literally:

```toml
[keys.normal]
"?" = ":write"
"!" = ":write"
"-" = ":write"
```

Note: `-` can't be used when combined with a modifier, for example `Alt` + `-` should be written as `A-minus`. `A--` is not accepted.

0 comments on commit 99fdbce

Please sign in to comment.