Closed IlanCosman closed 3 years ago
Ah, that's a neat extension! I tried installing this extension and experimenting with it. While fish won't parse set_color #00AFAF
as you'd hope, it looks like I can get the behavior you're looking for by writing set_color '#00AFAF'
:
@IlanCosman does that work well enough for you?
I'm apprehensive to add it to the fish extension, as:
However the above workaround seems pretty reasonable and still useful.
Thanks for the reply 😄 I suppose I didn't play around enough, I hadn't even considered that set_color
would accept that; thanks for the tip. The workaround is reasonable but makes the whole thing feel rather clunky. Rather, I think I will make a fish issue to have set_color
colorize its arguments, as that would solve this problem and be a nice feature regardless.
https://marketplace.visualstudio.com/items?itemName=naumovs.color-highlight is a very popular and useful extension.
This extension only activates when using a # before the hexcode or optionally on color words like red, blue, etc.
Since fish uses # as it's comment delimiter, obviously this last function wouldn't work correctly.
I propose that color codes and color words be highlighted after a
set_color
. If you're feeling very adventurous you could mimic exactly whatset_color
would do, for example underlining the next word when usingset_color --underline
, bolding the next work when usingset_color --bold
etc. Perhaps more easily you could bold the--bold
option and underline the--underline
option. Just highlighting based on color would be lovely however.