Skip to content

Cursor style: a gutter marker instead of a repainted row #1232

Open

Description

@denysshnurenko

What do you want to change?

A third cursor style for cursor_line: a marker in the gutter (for example ▶ in the accent color) on the current line, while the line itself keeps its own add/delete background and syntax colors. Something like cursor_line = "gutter".

Why?

I move through a diff with j/k and add notes with c. With row, the current line is repainted, so the line I am about to comment on loses its diff coloring. With number, the mark sits in the line-number column, which is a small target to follow while scrolling. Coming from revdiff, a ▶ in the gutter is easy to track and leaves the code untouched.

How? (optional)

One extra cell in the existing gutter, painted only on the current line, with its color from a theme token (defaulting to the accent color).

Activity

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