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

"Go to parent/child" navigation in commit graph #3974

Open
zhennTil opened this issue Oct 9, 2024 · 0 comments
Open

"Go to parent/child" navigation in commit graph #3974

zhennTil opened this issue Oct 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@zhennTil
Copy link

zhennTil commented Oct 9, 2024

Is your feature request related to a problem? Please describe.

Before switching to lazygit, I used a GUI that had a keybinding to go to the commit's first parent (usually the merge parent, in the case of a merge commit).

I find myself missing this feature when looking at the full commit graph for context, but wanting to follow a specific branch.
Also, the inverse operation of navigating to the last(?) child.

Describe the solution you'd like

I would like to have keybinds that act in the manner described above, navigating to the commit's parent or child.

Proof-of-concept implementation of the go-to-parent functionality here: https://github.com/zhennTil/lazygit/tree/feature/goto-parent -- demo below.

It still needs some robustness, and the go-to-child part which is a bit more difficult, but I will gladly finish this and open a PR, if there is interest.

Describe alternatives you've considered

Perhaps this is possible with custom commands, but I could not find a way to trigger GUI actions from custom commands -- maybe I simply missed that, or it is not currently possible.

Additional context

gtp

@zhennTil zhennTil added the enhancement New feature or request label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant