home/gitui: use vim keybinds
This commit is contained in:
parent
c7e27e51ce
commit
5d8b5cf443
1 changed files with 16 additions and 0 deletions
|
@ -20,4 +20,20 @@
|
|||
|
||||
programs.gh.enable = true;
|
||||
programs.gitui.enable = true;
|
||||
|
||||
# vim keybinds
|
||||
# https://github.com/extrawurst/gitui/blob/master/KEY_CONFIG.md
|
||||
programs.gitui.keyConfig = ''
|
||||
(
|
||||
move_left: Some(( code: Char('h'), modifiers: "")),
|
||||
move_right: Some(( code: Char('l'), modifiers: "")),
|
||||
move_up: Some(( code: Char('k'), modifiers: "")),
|
||||
move_down: Some(( code: Char('j'), modifiers: "")),
|
||||
|
||||
stash_open: Some(( code: Char('l'), modifiers: "")),
|
||||
open_help: Some(( code: F(1), modifiers: "")),
|
||||
|
||||
status_reset_item: Some(( code: Char('U'), modifiers: "SHIFT")),
|
||||
)
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue