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 "Stash" menu #956

Open
rgorsuch opened this issue Dec 1, 2023 · 2 comments
Open

Add a "Stash" menu #956

rgorsuch opened this issue Dec 1, 2023 · 2 comments

Comments

@rgorsuch
Copy link

rgorsuch commented Dec 1, 2023

I propose adding a menu for basic managing stash management that could be used from any of the three views, "Map view", "Commit view" and "Stashes view" and would include the following options with keyboard shortcuts.

  1. Push stash
  2. Push stash with untracked files
  3. Pop stash

Oftentimes I find that I'm blocked by working changes when I want to pull, switch branches, or rebase. In those cases it feels like an interruption to stash and pop because I need to switch to the stash tab, move my hand away from the keyboard to the mouse, click the plus, click the "Include untracked files", click Save, and switch back to the view I was on. Then I can continue with what I was working on. But then to really return to my previous state, I need to go back to the stashes view, click the apply button, confirm that I'm really sure, and then click the minus button to "pop" it.

When I'm working at the command line this is a lot simpler.

git stash -u
[take action]
git stash pop

Adding this menu with keyboard shortcuts would allow me to stay focused. If the "stash pop" causes conflicts, then the stash should not be removed, just like the git cli.

@lucasderraugh
Copy link
Collaborator

I agree that a menu item for this would be more appropriate (true for most of the app), but there are shortcuts. If you want to stash quickly, command-3 will get you to the stash view, and simply pressing the s key will initiate a stash where you can hit return to create one. I never touch my mouse for stashing.

@rgorsuch
Copy link
Author

rgorsuch commented Dec 4, 2023 via email

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

No branches or pull requests

2 participants