Open aqw opened 3 weeks ago
I like the ideas for the flag and the option, it makes a lot of sense to me.
I have no strong oppinions about default colors. Of course it makes sense to select something that works for most configurations, i.e. a strong contrast between writing and background, and there are still discussions in the chat going on about transperancy, but in the end... This might be a good oportunity for us to test in the group to usage of local config files.
I think the default should actually be something that does not use colors, but only bold, underlined, italic .. attributes. It's the only thing that should work everywhere and for everyone.
We need a pretty generic config mechanism for this and figure out how to also apply that to other outputs including help.
So, we may end up with more generic config-override options. However, --style
could then become an alias, so I'm fine with it as a quick solution for cat right now. But figure out how we want to implement it more generally before spreading that option to other commands.
I think the default should actually be something that does not use colors, but only bold, underlined, italic .. attributes. It's the only thing that should work everywhere and for everyone.
I agree.
We need a pretty generic config mechanism for this and figure out how to also apply that to other outputs including help.
Oof. Good point. That one... will be difficult and may require its own issue. @j-leo you're the one running a terminal with a bright background. How is the legibility of the text (and colorized text) in onyo set --help
?
Looking at the highlighting in a complex one (onyo set --help
, the color style changes between the help text and the code blocks. There's already room for improvement and standardizing there.
I think the default should actually be something that does not use colors, but only bold, underlined, italic .. attributes. It's the only thing that should work everywhere and for everyone.
I agree.
We need a pretty generic config mechanism for this and figure out how to also apply that to other outputs including help.
Oof. Good point. That one... will be difficult and may require its own issue. @j-leo you're the one running a terminal with a bright background. How is the legibility of the text (and colorized text) in
onyo set --help
?Looking at the highlighting in a complex one (
onyo set --help
, the color style changes between the help text and the code blocks. There's already room for improvement and standardizing there.
onyo set --help
looks good IMO:
Depending on the terminal color scheme, the syntax highlighting can be either wonderful, or entirely illegible.
The color theme should be configurable by the user. Rich.Syntax uses Pygments Styles.
I propose adding a flag and config option:
And the config:
The current default (inherited from Rich) is
monokai
.It may be necessary also to look at
Rich.Syntax
'sbackground_color
:In addition to available styles, we should allow
'none'
(or'disable'
) to turn off syntax highlighting incat
.To list available styles:
Open Question: