forked from helix-editor/helix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into line_ending_detection
- Loading branch information
Showing
35 changed files
with
1,704 additions
and
750 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Key Remapping | ||
|
||
One-way key remapping is temporarily supported via a simple TOML configuration | ||
file. (More powerful solutions such as rebinding via commands will be | ||
available in the feature). | ||
|
||
To remap keys, write a `config.toml` file in your `helix` configuration | ||
directory (default `~/.config/helix` in Linux systems) with a structure like | ||
this: | ||
|
||
```toml | ||
# At most one section each of 'keys.normal', 'keys.insert' and 'keys.select' | ||
[keys.normal] | ||
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 = "select_line" # Maps Control-Shift-Escape to select_line | ||
|
||
[keys.insert] | ||
A-x = "normal_mode" # Maps Alt-X to enter normal mode | ||
``` | ||
|
||
Control, Shift and Alt modifiers are encoded respectively with the prefixes | ||
`C-`, `S-` and `A-`. Special keys are encoded as follows: | ||
|
||
* Backspace => "backspace" | ||
* Space => "space" | ||
* Return/Enter => "ret" | ||
* < => "lt" | ||
* \> => "gt" | ||
* \+ => "plus" | ||
* \- => "minus" | ||
* ; => "semicolon" | ||
* % => "percent" | ||
* Left => "left" | ||
* Right => "right" | ||
* Up => "up" | ||
* Home => "home" | ||
* End => "end" | ||
* Page Up => "pageup" | ||
* Page Down => "pagedown" | ||
* Tab => "tab" | ||
* Back Tab => "backtab" | ||
* Delete => "del" | ||
* Insert => "ins" | ||
* Null => "null" | ||
* Escape => "esc" | ||
|
||
Commands can be found in the source code at `../../helix-term/src/commands.rs` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.