Skip to content

Line-level focus for better keyboard-driven user comments #436

@thurstonsand

Description

@thurstonsand

What do you want to change?

Add keyboard-accessible line focus tracking within the scrolling diff view, so it can be used as a target for creation a comment with the c keybind.

Why?

So Hunk already has line-level scrolling with j/k, but it only scrolls the viewport and does not come with a line focus. This causes problems in a keyboard-driven workflow when I e.g. want to create a comment on a particular line. as is, the c keybind just creates it "somewhere" in the hunk, and not necessarily the line i want to draw an agent's focus to.

This also brings parity to the mouse-driven workflow, where you CAN click a specific line and hit the [+] to leave a line-level comment.

How? (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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