Skip to content

Open a blame line's commit in the Commits panel #315

Description

@jongio

When blame is toggled on in the Preview panel, add a key that opens the commit responsible for the current line in the Commits panel. Blame tells you which commit last touched a line; the natural next step is to see that commit in full, and right now there is no way to jump straight to it.

Solution

Track the commit SHA for the line under the cursor in the blame view. On the new key, send a message that selects that commit in the Commits panel and switches it to commit-detail view, reusing the existing reactive panel messaging.

Acceptance criteria

  • With blame on, a Preview key jumps to the current line's commit in the Commits panel.
  • Uncommitted lines (all-zero SHA) are ignored with a short notification instead of a broken jump.
  • The key is listed in internal/keybindings/keybindings.json and the help overlay.
  • Unit tests cover SHA lookup for the cursor line and the uncommitted-line case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestideaFeature idea from the idea pipeline

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions