GitSavvy icon indicating copy to clipboard operation
GitSavvy copied to clipboard

Add a default action in the status dashboard

Open kaste opened this issue 6 years ago • 5 comments

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.

kaste avatar Nov 08 '18 15:11 kaste

Good idea.

randy3k avatar Nov 08 '18 20:11 randy3k

Ehh, what? Do you want a keybinding on <space>?

stoivo avatar Nov 11 '18 23:11 stoivo

<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.

kaste avatar Nov 13 '18 18:11 kaste

Let's prioritize this, it supports very common workflows!

asfaltboy avatar Oct 25 '19 18:10 asfaltboy

It's not trivial on top of the current code ... def not a low hanging fruit.

kaste avatar Oct 26 '19 10:10 kaste