Sublime Forum

Plugin to change the color of the caret

#1

Hi,
Is there a plugin that allows me to change the color of the caret ? I know I can update/override the color scheme to change the color of the caret, but having a plugin is an easier way especially if I am changing themes during night/day.

If there is no plugin, can you please let me know how it can be achieved ? A pointer in the correct direction will be well appreciated.

Thank you for your time and patience.

0 Likes

#2

Please forgive me for being in such a haste, but it seems that there is no way this can be done, right ?
Apologies once again for being a pain.

0 Likes

#3

The color of the caret comes from the caret and block_caret colors inside of the color scheme. So in order to change that via a plugin you would need a plugin that either changes the entire color_scheme setting to a different color scheme that has the caret color that you want, or which generates a brand new color scheme file on the fly that’s based on the current color scheme but with a new setting.

I’m not sure of any plugin that does either of those offhand, though. For the sake of simplicity the arguably better option is one that flips the color_scheme setting between previously prepared color schemes, which is pretty easy to write assuming you have the color schemes ready to go.

0 Likes