git-up / GitUp

The Git interface you've been missing all your life has finally arrived.
http://gitup.co
GNU General Public License v3.0
11.45k stars 1.24k forks source link

Add key navigation between index and workdir files #921

Closed fo2rist closed 1 year ago

fo2rist commented 1 year ago

Navigate to index files controller when Down button pressed while on the last file of the workdir list Navigate to workdir files controller when Up button pressed while on the first files of the index list

Context: I'm using keyboard navigation for most of the actions in GitUp but there were no way to quickly navigate b/w staged and un-staged files, and while it's possible with Tab/Shift+Tab it breaks natural up/down navigation that's available in simple mode. This change adds that ability to standard mode as well.

Testing and considerations:

fo2rist commented 1 year ago

Would like to discuss a possibility to add arrow navigation between individual lines in the diff view. That would allow me to do complete change/review/commit cycle with keyboard.

lucasderraugh commented 1 year ago

Thanks for writing this up. I'll take some time tonight or tomorrow to review what's being changed here.