diff --git a/.gitignore b/.gitignore index 9dc9bdc..513d3cd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ backup __pycache__ +gitui/gitui.log diff --git a/config.ini b/config.ini index b142029..82e9eda 100644 --- a/config.ini +++ b/config.ini @@ -81,7 +81,6 @@ files: nvim/init.vim > .config/nvim/init.vim when: host.is_wsl files: scripts/winmode > bin/winmode - [link-files vscode:windows] when: host.is_windows and host.has('code') target_root: ~/AppData/Roaming @@ -95,3 +94,9 @@ crates: cargo-edit cargo-get +[link-files gitui:windows] +when: host.is_windows and host.has('gitui') +target_root: ~/AppData/Roaming +files: + gitui + diff --git a/gitui/key_bindings.ron b/gitui/key_bindings.ron new file mode 100644 index 0000000..1168e4f --- /dev/null +++ b/gitui/key_bindings.ron @@ -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,),)), +) diff --git a/gitui/theme.ron b/gitui/theme.ron new file mode 100644 index 0000000..54b61c9 --- /dev/null +++ b/gitui/theme.ron @@ -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, +) \ No newline at end of file