You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
options not visible on "Solarized" color scheme #747
Solarized is a popular colorscheme and I'm using that in gnome-terminal. I was unable to read --raw option when and after typing it to open command. It's not visible even if i select it using the mouse.
Agreed, we'd like to add support for getting the colors from the config file at some point. Are you interested in working on a PR by chance? I can point out a few places in the code to look at.
Reacted by Zeeshan Ali Khan and Andrés N. Robalino
For easy reference, here's how to set a config value (this one sets the table type to display):
> config --set [table_mode light]
I'm not sure how easy it will be to take in a color name, that's something worth looking into. Alternately, your settings could take in RGB colors, and use those instead.
It may make sense to make a couple color themes, and let the user choose between one of them, rather than configuring each color by hand. But I'll let you make the call there :)
Activity
zeenix commentedon Oct 1, 2019
sophiajt commentedon Oct 1, 2019
Agreed, we'd like to add support for getting the colors from the config file at some point. Are you interested in working on a PR by chance? I can point out a few places in the code to look at.
zeenix commentedon Oct 1, 2019
Interested, yes. :)
Please do point away. I might be able to get some time for it soon. If not, hopefully it'll help some other person who wants to contribute. :)
sophiajt commentedon Oct 1, 2019
Sounds good :)
The prompt and input get colored here: https://github.com/nushell/nushell/blob/master/src/shell/helper.rs#L68 using the
paint_token_nodefunction later in the file.An example of loading from config is at: https://github.com/nushell/nushell/blob/master/src/format/table.rs#L207-L213
What I'd probably start with is loading some color elements from config before the loop here: https://github.com/nushell/nushell/blob/master/src/shell/helper.rs#L83 and then pass in those color settings to
paint_token_node.For easy reference, here's how to set a config value (this one sets the table type to display):
I'm not sure how easy it will be to take in a color name, that's something worth looking into. Alternately, your settings could take in RGB colors, and use those instead.
sophiajt commentedon Oct 1, 2019
It may make sense to make a couple color themes, and let the user choose between one of them, rather than configuring each color by hand. But I'll let you make the call there :)
andrasio commentedon Nov 2, 2019
#900
zeenix commentedon Nov 19, 2019
@andrasio same guestion here: Which PR/patch fixes this?
andrasio commentedon Nov 19, 2019
@zeenix Same answer caballero.
coolshaurya commentedon Jan 21, 2020
I believe this issue was fixed by #1194
sophiajt commentedon Jan 22, 2020
Closing but please reopen if the issue still occurs with the latest master
Improve keyword parsing, including for (nushell#747)
Improve keyword parsing, including for (#747)
Release notes for `0.75` (nushell#746)