Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update remapping.md: clarify difference in modifiers between non-character and character bindings #9198

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion book/src/remapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ C-o = ":open ~/.config/helix/config.toml" # Maps Ctrl-o to opening of the helix
a = "move_char_left" # Maps the 'a' key to the move_char_left command
w = "move_line_up" # Maps the 'w' key move_line_up
"C-S-esc" = "extend_line" # Maps Ctrl-Shift-Escape to extend_line
C-R = "redo" # Maps Ctrl-Shift-r to redo
g = { a = "code_action" } # Maps `ga` to show possible code actions
"ret" = ["open_below", "normal_mode"] # Maps the enter key to open_below then re-enter normal mode

Expand Down Expand Up @@ -51,7 +52,9 @@ t = ":run-shell-command cargo test"
## Special keys and modifiers

Ctrl, Shift and Alt modifiers are encoded respectively with the prefixes
`C-`, `S-` and `A-`. Special keys are encoded as follows:
`C-`, `S-` and `A-`, with the `S-` prefix being exclusively for special keys. When binding character keys, the character key should be capitalized instead.

Special keys are encoded as follows:

| Key name | Representation |
| --- | --- |
Expand Down