Skip to content

In-diff content search with match-to-match navigation #463

Description

@benvinegar

Correction

An earlier version of this issue claimed hunk lacked file filtering. That was wrong/ already opens a file filter (filterReviewFiles in src/ui/lib/files.ts) that matches file path, previous path, and the agent summary. This issue is rescoped to the part that genuinely doesn't exist.

Gap

There is no way to search within the diff content — find a string in the added/removed/context lines and jump between matches. / filters the file list; it does not search inside diff bodies.

What competitors do

revdiff has Vim-style / content search with n/N to cycle matches; delta highlights grep output.

Why it matters for hunk

In a large agent changeset, 'where does this symbol get touched' is a core review question. File filtering narrows which files show; it can't locate a token inside the diffs.

Sketch

  • A content-search mode (distinct from the existing file filter) that scans visible diff rows.
  • n/N to jump between matches across the full review stream; highlight matches in place.
  • Decide on the keybinding so it doesn't collide with / (file filter) — e.g. a separate trigger or a mode toggle within the filter prompt.

Source: competitor gap analysis (revdiff, delta). Note: file filtering already shipped via /.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestuiUser interface improvements

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions