-
Notifications
You must be signed in to change notification settings - Fork 755
Open
Labels
Description
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 ;)