You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
based off of #43 there is still the open issue of how to support different key bindings like vim,emacs and nano. I need input on those, cause I don't use them at all.
The most flexible solution would be having gitui dump the default bindings into a config file (on first run) and load it on startup so people can alter it.
My plan is to do it in 2 bigger changes:
1. make key bindings dynamic
refactor the key constants into a type KeyBindings
change all the pattern matching on CT constants for the bindings currently to be done using runtime variables from the KeyBindings
refactor commands::CommandText to be dynamic since they reference the keys
2. allow changing the bindings
enable serde feature in crossterm to be able to serialise them
use ron to load/save KeyBindings
Reacted by tsterker, Junichi Sugiura, Ben Lee-Cohen, Bruno Heridet, Abin Simon, Jonas Haag, Dmitry Khominich, Damien Rajon, xinhangliu, Michael Hall and 8 more
What I've found strange immediately after starting gitui was the different style in key bindings among them. The most stark was using letters for everything, but exiting with Ctrl-c. Most command-line tools taking over the entire screen like that exit with q. git add --interactive also quits with q Enter.
Hey @hkdobrev thanks for your interest in gitui ❤️.
Before Quit was bound to the q key but that did not work in the commit popup, so I added Esc which bugged me because I prefer consistency. Then I got complaints that it is standard to support ctrl+c so I switched it to being the Quit binding.
Ultimately there is no single key bindings that satisfy everyone. This ticket and #43 shows that. The big advantage of gitui is that even if they are odd the bindings are always clearly communicated and nothing to learn from man files.
Anyhow I hope solving this issue will allow you to setup any bindings you like :)
Reacted by Harry Dobrev, Paul Puschmann, Alexandre Martins and محمد الصوالحي
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Good news! Thanks to @yanganto this is actually on the way. Please checkout the branch (#234) and let us know what you think and how you like it so we meet the many expectations :)
Activity
hkdobrev commentedon May 17, 2020
👍
What I've found strange immediately after starting gitui was the different style in key bindings among them. The most stark was using letters for everything, but exiting with
Ctrl-c. Most command-line tools taking over the entire screen like that exit withq.git add --interactivealso quits withq Enter.Do you think these could be unified? Thanks!
extrawurst commentedon May 17, 2020
Hey @hkdobrev thanks for your interest in
gitui❤️.Before Quit was bound to the
qkey but that did not work in the commit popup, so I addedEscwhich bugged me because I prefer consistency. Then I got complaints that it is standard to supportctrl+cso I switched it to being the Quit binding.Ultimately there is no single key bindings that satisfy everyone. This ticket and #43 shows that. The big advantage of
gituiis that even if they are odd the bindings are always clearly communicated and nothing to learn from man files.Anyhow I hope solving this issue will allow you to setup any bindings you like :)
stale commentedon Aug 15, 2020
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
wezm commentedon Aug 18, 2020
Just bumping this to stop the bot from closing.
lucax88x commentedon Aug 18, 2020
Top this, awesome tool and those binding would make it favourite.
extrawurst commentedon Aug 18, 2020
Good news! Thanks to @yanganto this is actually on the way. Please checkout the branch (#234) and let us know what you think and how you like it so we meet the many expectations :)
tony commentedon Jan 30, 2022
For vim-style keybindings, see https://github.com/extrawurst/gitui/blob/master/KEY_CONFIG.md or #1114