nyxt icon indicating copy to clipboard operation
nyxt copied to clipboard

Change caret color/shape according to current mode

Open whirm opened this issue 4 years ago • 2 comments
trafficstars

Evil has this feature where it changes the cursor color and shape depending on the mode a buffer is in.

I find greatly useful as it allows one to quickly tell the mode without having to move your focus to the modeline and back repeatedly.

It saves me a ridiculous amount of mistakes caused by thinking I'm on a different mode.

Some screenshots to illustrate:

Insert mode: image

Visual mode: image

Unfocused buffer in visual mode: image

Emacs mode: image

Cheers!

whirm avatar Jul 29 '21 10:07 whirm

A great idea, thank you :-). We would need to change to our old buffer input method, or do some other magic to make it happen. We shall see!

jmercouris avatar Jul 29 '21 10:07 jmercouris

Actually, if HTML / CSS do not allow for cursor customization, isn't it because it belongs to... the hosting toolkit, that is, GTK here?

https://developer.gnome.org/gtk3/stable/chap-css-properties.html

Look for "caret-color". Maybe we can do more.

Ambrevar avatar Jul 29 '21 11:07 Ambrevar

I don't use Evil, I use god-mode, but my configuration has pretty much the same thing.

hendursaga avatar Sep 23 '22 17:09 hendursaga