Improve finding Stashes in the graph
Describe the improvement that you'd like With #48 and #201 the display of Stashes in the graph has been introduced but you can't find them easily in the graph if you have a long history and several branches.
Thus I would like to have the possibility to search or filter for Stashes to get there more easily. A list of Stashes with the possibility to jump to the corresponding position in the graph would be fine too.
Additional context (optional) Add any other context or screenshots about the improvement here.
Hi @chr7,
I find the following two Keyboard Shortcuts in the Git Graph View to be the quickest way to find the stash I'm interested in, particularly when they are on different branches and among lots of other commits.
-
CTRL/CMD + S: Scrolls the Git Graph View to the first (or next) stash in the loaded commits. -
CTRL/CMD + SHIFT + S: Scrolls the Git Graph View to the last (or previous) stash in the loaded commits.
You can also use the Find Widget CTRL/CMD + F to search for the word "stash", or a phrase in the stash message you're looking for.
Unlike other Git UI's that are an entire application (having access to the full screen), Git Graph has a smaller portion of the user's screen. This means that it's just not feasible to a have a dedicated sidebar on the left that displays branches, stashes, and other useful information (which is what most other Git UI's have).
Often when working with stashes I find it useful to still have the full context surrounding the stash, not just it's ancestors. This means that I don't think filtering out everything but a specific stash is the best solution. (and part of the reason I regularly use the two stash keyboard shortcuts mentioned)
If you don't think the above keyboard shortcuts are sufficient, the only solution I can think of would be to have a "Jump" dialog, that could be activated by a button on the Git Graph View's Control Bar (or a Keyboard Shortcut). This "Jump" dialog could have a list of options, that when clicked, would be scrolled to and emphasised in the Git Graph View. This dialog could include: stashes, the commit head, master branch, and potentially other objects the user might want to quickly jump to. What do you think?
Thanks for the hint about the search. Sure, it works but you have to have an idea of the string you are looking for. For example, if I have only a very vague idea how a tag could be named then it will be hard to find it. Selecting it - as you suggested - from a list and jumping there is definitively more comfortable and faster.