Skip to content

Feature request: allow switching between branches #189

@enoryw

Description

@enoryw

Feature request: allow switching between branches, as demonstrated in this Emacs undotree demo where left/right keys switch branches and up and down keys navigate through a branch.

When going back in history, users tend to start from most recent and move incrementally backwards, usually linearly. If switching branches, we usually traverse it linearly because it makes the most intuitive sense and easiest to understand. Currently, the layout does not allow for this--it's only possible to navigate vertically and not as if it's a tree (it only appears like a tree but doesn't act like it).

For example here, it is confusing navigating from third entry from the top (the first entry diverging from left branch) to the forth (next) entry from the top (the tip of the right branch). To replicate the intuitive nature of the Emacs undotree branch, the user would need to use vim motions to manually jump past irrelevant diverges in history. I found I use undotree much more frequently and naturally in Emacs where left/right keys switch branches and up/down keys navigate through the branch (I mean hjkl keys, of course).

It's probably non-trivial to implement this though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions