Skip to content

Easy way to move between diffs (Unimpaired-style) #132

@Peeja

Description

@Peeja

When I'm staging a commit, I usually open :Gstatus and run down the diffs (with D) staging things. Moving to the next diff is a complicated procedure, something like ^WP^ND. It feels ripe for an Unimpaired-style binding, such as ]g to go to the next diff, and [g to go to the previous. Looking at fugitive.vim, though, I can't decide how best to implement such a thing. Unlike the Quickfix List, for instance, there's no notion of a "cursor" or "current file" in the :Gstatus window except for the actual cursor, which only exists when the buffer is open, and is ambiguous if it's open in multiple windows.

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions