Enable jumping back in main view#1138
Merged
koutcher merged 2 commits intojonas:masterfrom Oct 4, 2021
kempniu:jump-back-in-main-view
Merged
Enable jumping back in main view#1138koutcher merged 2 commits intojonas:masterfrom kempniu:jump-back-in-main-view
koutcher merged 2 commits intojonas:masterfrom
kempniu:jump-back-in-main-view
Conversation
Allow going back to the previously selected commit after jumping to its parent. Fixes #628
Contributor
|
Wow I never thought of using |
Collaborator
|
Thanks, this makes the navigation in a messy git history really much easier. |
koutcher
approved these changes
Sep 10, 2021
Contributor
|
Works like a charm! Thank you @kempniu |
koutcher
added a commit
to koutcher/tig
that referenced
this pull request
Jan 4, 2022
With jonas#1138, using `:parent` after reaching an initial commit will keep pushing the same state in the main view history, and `:back` must then be used several times before it starts moving. Use lineno as data to prevent pushing the same history state. This a complement to 2e31516.
vxsl
pushed a commit
to vxsl/tig
that referenced
this pull request
Mar 18, 2026
Allow going back to the previously selected commit after jumping to its parent. Fixes jonas#628 [tk: added test]
vxsl
pushed a commit
to vxsl/tig
that referenced
this pull request
Mar 18, 2026
With jonas#1138, using `:parent` after reaching an initial commit will keep pushing the same state in the main view history, and `:back` must then be used several times before it starts moving. Use lineno as data to prevent pushing the same history state. This a complement to 2e31516.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi there,
First, thank you for all the work on this awesome tool.
The one feature that I have been missing is the ability to go back to the previously selected commit after jumping to its parent. I find that to be really useful for git repositories which are "heavily non-linear" (like the Linux kernel tree).
I see this idea has already been suggested in #628 and also in #506 (which implemented #388), so I took a stab at implementing it.
This PR looks almost too simple to be right, but it seems to work well for me :-) I would be happy to work on it further if the approach I chose is not the preferred one.
Hope this helps!