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 graph navigation buttons #187

Closed
itaibh opened this issue Sep 27, 2019 · 4 comments
Closed

Add graph navigation buttons #187

itaibh opened this issue Sep 27, 2019 · 4 comments
Assignees
Labels
backlog Requests that are closed for now, but may be re-opened in the future if more interest is expressed improvement An improvement to existing functionality needs more info More information has been requested nice to have A feature request that is nice to have (lower priority)

Comments

@itaibh
Copy link

itaibh commented Sep 27, 2019

Add navigation buttons: Back / Current / Forward
I think it would be useful to have navigation buttons on the header (which should stay visible) that will scroll to the current checked-out commit (Current) (the commit currently marked with a blue circle), to the commit I interacted before (Back), and back to the commit I was handling (Forward).

While usually the current commit is found in one of the first lines, there are cases where it's far below (when searching for a commit that broke something, for example), and the ability to quickly get there and see what's around, and back to a new branch you are committing fixes to is helpful.

@itaibh itaibh added the improvement An improvement to existing functionality label Sep 27, 2019
@mhutchie
Copy link
Owner

Thanks for raising this feature request!

As you’ve mentioned, this functionality is primarily used in some specific cases, so I don’t think it warrants adding 3 new buttons to the top control bar (when most of the time they won’t be used). The top control bar is already getting pretty full in multi-root workspaces on smaller screen devices, and I’ve reserved the little space that is left for upcoming commit filtering (by author, file, etc. as raised in other feature requests), which will be far more generally useful in many use cases. Having the buttons in the top control bar would also require it to stay visible when the view is scrolled as you mentioned (this has already been requested in #132). This adds a dependency on the other feature request, that will prevent this request from becoming available for a while (as #132 is actually very complex and hard to implement).

An alternative solution to this use case would be to add some new keyboard shortcuts instead of buttons on the top control bar (e.g. left arrow = back, h = go to head, right arrow = forward). This is consistent with the existing up and down arrow keyboard shortcuts that navigate the Commit Details View to the previous and next commits. Do you think this solution would work for you?

Just to clarify, I’d expect “interacted with” to mean a commit should be added to the history when it is right clicked on, or the Commit Details View is opened on it. Is this what you were thinking?

@itaibh
Copy link
Author

itaibh commented Sep 28, 2019 via email

@mhutchie
Copy link
Owner

Thanks for confirming that the arrow navigation will work for you (at least for now, it can always be complimented by buttons later).

In order to develop this feature, I will need to add commit hashes to a stack that can then be navigated with arrow keys (or buttons). The front end of the extension must trigger these events, so please define "interacted with" with respect to events that occur in the front end (e.g. right click on a commit / branch / tag, open the commit details, checkout a commit / branch, i.e. any user interaction with the front end). Also remember to keep your definition broad enough so that it is as broadly useful as possible (so that it can be used by others, and not just your specific use case).

@mhutchie mhutchie added needs more info More information has been requested nice to have A feature request that is nice to have (lower priority) backlog Requests that are closed for now, but may be re-opened in the future if more interest is expressed labels Sep 28, 2019
@mhutchie
Copy link
Owner

mhutchie commented Oct 2, 2019

As I can't think of a feasible history triggering solution that meets your needs (and is generally applicable / useful to other users), you haven't responded to my previous request for a definition of "interacted with" with respect to events that occur in the front end, and this would only be used in infrequent circumstances by some users, I'm closing this feature request for now and adding it to the backlog.

If you, myself, or other users reading this in the future can reply with a feasible, broadly useful, and consistent way to trigger commit hashes to be added to the history, I'd be more than happy to re-open and implement this.

@mhutchie mhutchie closed this as completed Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Requests that are closed for now, but may be re-opened in the future if more interest is expressed improvement An improvement to existing functionality needs more info More information has been requested nice to have A feature request that is nice to have (lower priority)
Projects
None yet
Development

No branches or pull requests

2 participants