atlas-engineer / nyxt

Nyxt - the hacker's browser.
https://nyxt-browser.com/
9.88k stars 413 forks source link

Change caret color/shape according to current mode #1688

Open whirm opened 3 years ago

whirm commented 3 years ago

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!

jmercouris commented 3 years ago

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!

Ambrevar commented 3 years ago

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.

hendursaga commented 2 years ago

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