From 78d0e1d0b8d0145310ae7cc73cf2f9322c4243c2 Mon Sep 17 00:00:00 2001 From: Reilly Wood <26268125+rgwood@users.noreply.github.com> Date: Thu, 28 Sep 2023 18:17:56 -0700 Subject: [PATCH] `explore`: highlight selected cell using background colour instead of cursor (#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) --- crates/nu-explore/src/commands/table.rs | 7 ----- crates/nu-explore/src/explore.rs | 3 -- crates/nu-explore/src/views/record/mod.rs | 30 +++++++++---------- .../src/sample_config/default_config.nu | 3 +- 4 files changed, 16 insertions(+), 27 deletions(-) diff --git a/crates/nu-explore/src/commands/table.rs b/crates/nu-explore/src/commands/table.rs index 7ebcde3eb5..21a2237499 100644 --- a/crates/nu-explore/src/commands/table.rs +++ b/crates/nu-explore/src/commands/table.rs @@ -33,7 +33,6 @@ struct TableSettings { selected_cell_s: Option