Skip to content

Add a quick file picker for large diffs #284

Closed

Description

@kalifg

When I’m reviewing a diff with a lot of files, I often know which file I want but still have to step through the sidebar to reach it.

I’d like to add a configurable jump_file action, bound to Ctrl+P by default. It would open a small picker where typing filters the visible file paths, the normal up/down keys move through matches, and Enter loads the selected file.

My intention is to keep the patch small by following the existing theme-picker interaction and reusing the current file-tree selection and loading paths. Active annotated-only or unreviewed-only filters would still be respected.

I have a working implementation on my fork for personal use. If this fits the project direction, I’d be happy to submit it as a focused PR.

Activity

  1. umputun commented on Jul 22, 2026

    @umputun
    Owner

    this fits. Looked at your feat/file-jump-picker branch, and the shape is right. Feel free to make a PR.

    pls keep the scope as it is now: paths from the current filtered tree only, substring matching, the existing SelectByPath / loadSelectedIfChanged path, and a configurable jump_file action with Ctrl+P as the default. Ctrl+P should keep recalling search history while the / prompt is active.

    no generic picker or fuzzy-search framework, and no new dependency. Keep the pending annotation/hunk jump cleanup and tests for both tree filters, no-match behavior, mouse selection, and modal key precedence.

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