Skip to content

docs(examples): add selection styling example#1088

Merged
kronberger-droid merged 2 commits into
nushell:mainfrom
kronberger-droid:add-selection-styling-example
May 28, 2026
Merged

docs(examples): add selection styling example#1088
kronberger-droid merged 2 commits into
nushell:mainfrom
kronberger-droid:add-selection-styling-example

Conversation

@kronberger-droid
Copy link
Copy Markdown
Collaborator

@fdncred Like we talked about.
I used Vi Mode since my notebook has broken arrow keys. Hope thats fine.
I also added some comments with other possible styling.

These would just have to be exposed to nushell, if we want it there.

@fdncred
Copy link
Copy Markdown
Contributor

fdncred commented May 28, 2026

yup, i tested it and it looks good to me. In my perfect world we'd have something like ghostty has the inverts the selection colors but that sounds tricky. I think this is good for now because at least it demonstrates how it's done. Thanks!

@kronberger-droid
Copy link
Copy Markdown
Collaborator Author

kronberger-droid commented May 28, 2026

@fdncred Have you tried Style::new().reverse()or do you mean something else?

@fdncred
Copy link
Copy Markdown
Contributor

fdncred commented May 28, 2026

oh, ya. I forgot about reverse(). We can leave this example as whatever you like but for nushell I'd like to do reverse I think.

@kronberger-droid kronberger-droid merged commit a3fa8f0 into nushell:main May 28, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants