Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a default action in the status dashboard #1038

Open
kaste opened this issue Nov 8, 2018 · 5 comments
Open

Add a default action in the status dashboard #1038

kaste opened this issue Nov 8, 2018 · 5 comments

Comments

@kaste
Copy link
Collaborator

kaste commented Nov 8, 2018

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.

@randy3k
Copy link
Collaborator

randy3k commented Nov 8, 2018

Good idea.

@stoivo
Copy link
Member

stoivo commented Nov 11, 2018

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

@kaste
Copy link
Collaborator Author

kaste commented Nov 13, 2018

<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 kaste mentioned this issue Oct 25, 2019
4 tasks
@asfaltboy
Copy link
Member

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

@kaste
Copy link
Collaborator Author

kaste commented Oct 26, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants