Skip to content

Commit

Permalink
more docs on keycodes
Browse files Browse the repository at this point in the history
  • Loading branch information
extrawurst committed Mar 9, 2025
1 parent d7e9ffd commit c95cea9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion KEY_CONFIG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ The location of the file depends on your OS:
* `$HOME/.config/gitui/key_bindings.ron` (linux)
* `%APPDATA%/gitui/key_bindings.ron` (Windows)

See all possible keys to overwrite in code: [here](https://github.com/extrawurst/gitui/blob/master/src/keys/key_list.rs#L83)
See all possible keys to overwrite in gitui: [here](https://github.com/extrawurst/gitui/blob/master/src/keys/key_list.rs#L83)

Possible values for:
* `code` are defined by the type `KeyCode` in crossterm: [here](https://docs.rs/crossterm/latest/crossterm/event/enum.KeyCode.html)
* `modifiers` are defined by the type `KeyModifiers` in crossterm: [here](hhttps://docs.rs/crossterm/latest/crossterm/event/struct.KeyModifiers.html)

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.

Expand Down

0 comments on commit c95cea9

Please sign in to comment.