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
Stash: Keyboard navigation #9308
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hotkey(s) for Write custom stash message
(and for Refresh
) would be nice.
Implemented that too (also just showing refresh when it has effect, for worktree). For the custom text mnemonics would be more natural than a hotkey, but then the logic for the custom message would need to be changed (remove button, add label and add to command if not empty) and I am not sure exactly how to handle. |
👍 Thank you!
I agree, it is not perfect. But I think this would be too much effort for little gain. |
Replaced button with label, could also simplify the logic. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me. (The failing test is unrelated.)
2c18ee5
to
1654bb0
Compare
rebased without further changes |
@msftbot merge in 24 hours |
Hello @gerhardol! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
Stash: Keep position when dropping a stash Disable and ignore refresh if worktree is not shown
1654bb0
to
4c65e21
Compare
Fixes #8108
Proposed changes
HotKeys for next/previous stash and refresh
Ctrl-P navigates to next older stash item, similar to how navigation in RevGrid.
Mnemonics for the form.
As
Stashes
control gets a specific hotkey, it is possible to navigate in the stashes list with Alt-H arrow /PageUp/etc too"&Apply stash" but "S&tash all changes" as I expect Ctrl-Alt-Up to be used for stash in current worktree.
Stash: Keep position when dropping a stash
Simplify deleting stashes, unless deleting the first, you would have to search for the stash close to where you just deleted the stash.
Remove button for custom message, just make it writeable for worktree.
Add label for mnemonics
Screenshots
After
Test methodology
Manual
✒️ I contribute this code under The Developer Certificate of Origin.