Skip to content

Commit c95cea9

Browse files
committed
more docs on keycodes
1 parent d7e9ffd commit c95cea9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

KEY_CONFIG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ The location of the file depends on your OS:
2626
* `$HOME/.config/gitui/key_bindings.ron` (linux)
2727
* `%APPDATA%/gitui/key_bindings.ron` (Windows)
2828

29-
See all possible keys to overwrite in code: [here](https://github.com/extrawurst/gitui/blob/master/src/keys/key_list.rs#L83)
29+
See all possible keys to overwrite in gitui: [here](https://github.com/extrawurst/gitui/blob/master/src/keys/key_list.rs#L83)
30+
31+
Possible values for:
32+
* `code` are defined by the type `KeyCode` in crossterm: [here](https://docs.rs/crossterm/latest/crossterm/event/enum.KeyCode.html)
33+
* `modifiers` are defined by the type `KeyModifiers` in crossterm: [here](hhttps://docs.rs/crossterm/latest/crossterm/event/struct.KeyModifiers.html)
3034

3135
Here is a [vim style key config](vim_style_key_config.ron) with `h`, `j`, `k`, `l` to navigate. Use it to copy the content into `key_bindings.ron` to get vim style key bindings.
3236

0 commit comments

Comments
 (0)