adding vim-like keybindings to gitui

master
Jordan Orelli 1 year ago
parent 3d6d61c762
commit 3c86c09c51

1
.gitignore vendored

@ -1,2 +1,3 @@
backup backup
__pycache__ __pycache__
gitui/gitui.log

@ -81,7 +81,6 @@ files: nvim/init.vim > .config/nvim/init.vim
when: host.is_wsl when: host.is_wsl
files: scripts/winmode > bin/winmode files: scripts/winmode > bin/winmode
[link-files vscode:windows] [link-files vscode:windows]
when: host.is_windows and host.has('code') when: host.is_windows and host.has('code')
target_root: ~/AppData/Roaming target_root: ~/AppData/Roaming
@ -95,3 +94,9 @@ crates:
cargo-edit cargo-edit
cargo-get cargo-get
[link-files gitui:windows]
when: host.is_windows and host.has('gitui')
target_root: ~/AppData/Roaming
files:
gitui

@ -0,0 +1,8 @@
(
move_left: Some(( code: Char('h'), modifiers: ( bits: 0,),)),
move_right: Some(( code: Char('l'), modifiers: ( bits: 0,),)),
move_up: Some(( code: Char('k'), modifiers: ( bits: 0,),)),
move_down: Some(( code: Char('j'), modifiers: ( bits: 0,),)),
stash_open: Some(( code: Char('l'), modifiers: ( bits: 0,),)),
open_help: Some(( code: F(1), modifiers: ( bits: 0,),)),
)

@ -0,0 +1,23 @@
(
selected_tab: Reset,
command_fg: White,
selection_bg: Blue,
selection_fg: White,
cmdbar_bg: Blue,
cmdbar_extra_lines_bg: Blue,
disabled_fg: DarkGray,
diff_line_add: Green,
diff_line_delete: Red,
diff_file_added: LightGreen,
diff_file_removed: LightRed,
diff_file_moved: LightMagenta,
diff_file_modified: Yellow,
commit_hash: Magenta,
commit_time: LightCyan,
commit_author: Green,
danger_fg: Red,
push_gauge_bg: Blue,
push_gauge_fg: Reset,
tag_fg: LightMagenta,
branch_fg: LightYellow,
)
Loading…
Cancel
Save