Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

explore: highlight selected cell using background colour instead of cursor #10533

Merged
merged 2 commits into from Sep 29, 2023

Conversation

rgwood
Copy link
Contributor

@rgwood rgwood commented Sep 28, 2023

More incremental explore improvements!

This PR removes the show_cursor config from the explore command, in favour of always using the background colour to highlight the selected cell. I believe this is a better default and I'd like to remove the show_cursor functionality entirely as part of the effort to simplify explore.

The style for selected cells is still configurable. I went with light blue for the default background colour, it looks OK to me.

Before:

Screenshot from 2023-09-27 08-51-03

After:

Screenshot from 2023-09-27 08-50-59

@fdncred
Copy link
Collaborator

fdncred commented Sep 28, 2023

I've done this for a while now and it does make a huge difference. Thanks for working on this!

@rgwood rgwood merged commit 78d0e1d into nushell:main Sep 29, 2023
19 checks passed
rgwood added a commit that referenced this pull request Oct 1, 2023
Remove code for 2 no-longer-used configuration options in `explore`:
`explore.config.cursor_color` and `explore.config.border_color`.

Think I made these unnecessary in
#10533 and
#10270 but missed this code, my
bad. The `explore` config code is a little hard to follow because it
does so many key lookups in hashmaps.
hardfau1t pushed a commit to hardfau1t/nushell that referenced this pull request Dec 14, 2023
… cursor (nushell#10533)

More incremental `explore` improvements!

This PR removes the `show_cursor` config from the `explore` command, in
favour of always using the background colour to highlight the selected
cell. I believe this is a better default and I'd like to remove the
`show_cursor` functionality entirely as part of the effort to simplify
`explore`.

The style for selected cells is still configurable. I went with light
blue for the default background colour, it looks OK to me.

## Before:

![Screenshot from 2023-09-27
08-51-03](https://github.com/nushell/nushell/assets/26268125/798636be-a4ea-467f-b852-c0e929e4aa9d)


## After:

![Screenshot from 2023-09-27
08-50-59](https://github.com/nushell/nushell/assets/26268125/c88662e7-05b5-42a7-bf30-b03c70fba79d)
hardfau1t pushed a commit to hardfau1t/nushell that referenced this pull request Dec 14, 2023
Remove code for 2 no-longer-used configuration options in `explore`:
`explore.config.cursor_color` and `explore.config.border_color`.

Think I made these unnecessary in
nushell#10533 and
nushell#10270 but missed this code, my
bad. The `explore` config code is a little hard to follow because it
does so many key lookups in hashmaps.
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.

None yet

2 participants