Skip to content

Focus file pane on first changed line #325

Closed

Description

@tekumara

Instead of the file contents pane starting at line 1, focus on the first changed line.

This avoids the need to scroll down to see changes.

Activity

  1. tekumara commented on Aug 19, 2026

    @tekumara
    Author

    PS: thanks for the best diff review tool out there!

  2. umputun commented on Aug 20, 2026

    @umputun
    Owner

    added in #329, as an opt-in flag rather than a change to the default.

    --start-at-change puts the cursor on the first changed line when a file loads, and reapplies on every file switch and on reload, so n/p through a tree of files opens each one on its change. There is also REVDIFF_START_AT_CHANGE and a start-at-change key in ~/.config/revdiff/config if you want it on permanently.

    it is off by default because the full-file view is deliberate here, revdiff is meant for judging a change against the surrounding source rather than reading isolated hunks. --compact already gave you changes-at-the-top by shrinking the diff to a few lines of context; what your request adds is the same starting position while keeping the whole file, which the existing [/] hunk navigation did not do on load.

    will be in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions