Skip to content

[REQUEST] Cursor count indicator #5425

@exlee

Description

@exlee

Feature

Few times I broke my file because I pressed a shift-N and didn't notice I have multiple cursors. Right now I'm using red statusbar as indicator and it works perfectly, but I figured that maybe it'd be possible to have a small window in a corner (or even a single colored square) that would allow me to indicate this in more subtle way.

Right now I use.

hook -group multiple-cursors-warning global NormalIdle .* %{
    evaluate-commands %sh{
        if [ "$kak_selection_count" -gt 1 ]; then
            echo "set-face window StatusLine default,red+F"
        else
            echo "unset-face window StatusLine"
        fi
    }
}

Usecase

Fat fingers mistake prevention ;)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions