GitSavvy
GitSavvy copied to clipboard
Add a default action in the status dashboard
Probably relatively simple to explain: You move the cursor around, and press <space>
and it will stage or unstage the file depending of the status.
Good idea.
Ehh, what?
Do you want a keybinding on <space>
?
<space>
is a good candidate for such a keybinding. The key should invoke a 'DefaultAction'. E.g. if the cursor is under a staged file, it will unstage the file. If the cursor is on an unstaged file, it will stage that file. For stashes, there is probably not a good default so it will do nothing here. (You could show the stash.)
The default action should not be destructive. It is the equivalent of clicking on a file in the git GUI.
Let's prioritize this, it supports very common workflows!
It's not trivial on top of the current code ... def not a low hanging fruit.