From 812152fd9677fc4630eb901f56e2285969fd9612 Mon Sep 17 00:00:00 2001 From: hl-valdemar Date: Sun, 11 Oct 2026 19:43:08 +0200 Subject: [PATCH] fix: remove redundant changed-file explorer legend --- TODO.md | 2 +- src/tui.rs | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/TODO.md b/TODO.md index aee2bd0..6edd28b 100644 --- a/TODO.md +++ b/TODO.md @@ -3,7 +3,7 @@ - [x] buffer ux improvement: add toggleable word wrap (no keybinding by default). - [x] add panes/splits: split current pane above/below (`_`) or left/right (`|`) in Normal mode; navigate panes with Option/Alt+h/j/k/l. - shared split layout and directional focus with diff views; independent pane views, shared buffers, and guarded close/force-close actions. -- [ ] remove diff viewer's file explorer's `A added M modified...` explanation - it's standard and the explanation doesn't fit in the pane, so it can go. +- [x] remove diff viewer's file explorer's `A added M modified...` explanation - it's standard and the explanation doesn't fit in the pane, so it can go. - [ ] add tabs: tab support, editor action to open a buffer in a new tab, default tab navigation is `ctrl+option+h/l`, close tab action. - [ ] diff view: add character-wise change highlight (enabled by default). - [ ] diff view: lsp actions should act as they normally would. if an lsp action would open another file, then the file should be opened in another tab outside the diff view - if the referenced file/symbol is part of the changes in the diff, it should just be opened in the diff view. diff --git a/src/tui.rs b/src/tui.rs index 5cbd29c..75b47d9 100644 --- a/src/tui.rs +++ b/src/tui.rs @@ -3550,10 +3550,8 @@ fn draw_file_list( )); } } - let help = if changed_files.is_some() { - "A added · M modified · D deleted · R renamed · ^E hide".into() - } else if picker.focused { - let controls = if picker.root.as_os_str().is_empty() { + let help = if picker.focused { + let controls = if changed_files.is_some() { if browsing { "Enter · i filter · Esc close · Tab panes · ^T view" } else { @@ -3571,7 +3569,7 @@ fn draw_file_list( } }; format!("^U clear · {navigation_hint} · {controls}") - } else if picker.root.as_os_str().is_empty() { + } else if changed_files.is_some() { "Editor focus · Tab to browse changed files".into() } else { "Editor focus · invoke explorer to browse".into()