From 99fdbce566434a8fc823a28a8c1cccbb743a5ade Mon Sep 17 00:00:00 2001 From: Nikita Revenco <154856872+NikitaRevenco@users.noreply.github.com> Date: Mon, 16 Dec 2024 16:01:14 +0000 Subject: [PATCH] docs: remove mention that `-` requires special handling (#12250) --- book/src/remapping.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/book/src/remapping.md b/book/src/remapping.md index e3baee13fc02..4eb14c558e29 100644 --- a/book/src/remapping.md +++ b/book/src/remapping.md @@ -94,7 +94,6 @@ Special keys are encoded as follows: | Backspace | `"backspace"` | | Space | `"space"` | | Return/Enter | `"ret"` | -| \- | `"minus"` | | Left | `"left"` | | Right | `"right"` | | Up | `"up"` | @@ -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.