git.lucas.co / cce-files
file manager
git clone https://git.lucas.co/cce-files.git

commit76b78bf1dbda30b75ff125d7dbd2c250ecb2b92c
parent18c900d38b
authorLucas Galante <lsgalante12@gmail.com>
date2026-09-28 22:56
Restore h/l as the parent/enter directory defaults

8cbf4f0 swapped them for u/i to echo the window manager's overview
keys, but h/l is the file-manager convention (ranger, lf) and is what
the fingers expect next to j/k. Both remain overridable through the
cce-files domain in input.kdl.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

 src/main.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index 1d572d8..b276d86 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -372,7 +372,7 @@ impl SplitPane {
 
 /// Browse-page shortcuts, resolved once at startup from input.kdl
 /// (`cce-files` domain → `cce-ui` domain), defaulting to vim-ish j/k for
-/// selection and u/i (up/in) for directories. Arrow keys,
+/// selection and h/l (parent/enter) for directories. Arrow keys,
 /// Enter-in-save-mode, and Escape stay fixed.
 struct BrowseKeys {
     open_file: String,
@@ -389,8 +389,8 @@ impl BrowseKeys {
         let get = cce_ui::input::app_chord;
         Self {
             open_file: get("open_file", "enter"),
-            enter_dir: get("enter_dir", "i"),
-            parent_dir: get("parent_dir", "u"),
+            enter_dir: get("enter_dir", "l"),
+            parent_dir: get("parent_dir", "h"),
             select_next: get("select_next", "j"),
             select_prev: get("select_prev", "k"),
             delete_entry: get("delete_entry", "delete"),