Skip to content

options not visible on "Solarized" color scheme #747

Closed

Description

@zeenix

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.

Activity

  1. zeenix commented on Oct 1, 2019

    @zeenix
    Author

    Screenshot from 2019-10-01 10-04-41

  2. sophiajt commented on Oct 1, 2019

    @sophiajt
    Contributor

    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.

  3. zeenix commented on Oct 1, 2019

    @zeenix
    Author

    Are you interested in working on a PR by chance?

    Interested, yes. :)

    I can point out a few places in the code to look at.

    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. :)

  4. sophiajt commented on Oct 1, 2019

    @sophiajt
    Contributor

    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_node function 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):

    > 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.

  5. sophiajt commented on Oct 1, 2019

    @sophiajt
    Contributor

    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 :)

  6. andrasio commented on Nov 2, 2019

    @andrasio
    Member
  7. added
    category:enhancement
    on Nov 3, 2019
  8. zeenix commented on Nov 19, 2019

    @zeenix
    Author

    @andrasio same guestion here: Which PR/patch fixes this?

  9. andrasio commented on Nov 19, 2019

    @andrasio
    Member

    @zeenix Same answer caballero.

  10. coolshaurya commented on Jan 21, 2020

    @coolshaurya
    Contributor

    I believe this issue was fixed by #1194

  11. sophiajt commented on Jan 22, 2020

    @sophiajt
    Contributor

    Closing but please reopen if the issue still occurs with the latest master

  12. added a commit that references this issue on Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions