tenseleyflow/fackr / 228cfd5

Browse files

fix: allow F3/Ctrl+B to toggle fuss mode over terminal

Fuss mode (file tree) should be accessible even when terminal is active.
Add pass-through for F3 and Ctrl+B keybindings so they toggle fuss mode
instead of being sent to the terminal.
Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
228cfd5570121e896ffe93efd5faae2a39835baf
Parents
2311cad
Tree
479cf5f

1 changed file

StatusFile+-
M src/editor/state.rs 9 0
src/editor/state.rsmodified
@@ -1464,6 +1464,15 @@ impl Editor {
14641464
                 }
14651465
             }
14661466
 
1467
+            // F3 or Ctrl+B toggles fuss mode (works over terminal)
1468
+            if key_event.code == KeyCode::F(3)
1469
+                || (key_event.code == KeyCode::Char('b')
1470
+                    && key_event.modifiers.contains(KeyModifiers::CONTROL))
1471
+            {
1472
+                self.workspace.fuss.toggle();
1473
+                return Ok(());
1474
+            }
1475
+
14671476
             // Send all other keys to terminal
14681477
             let _ = self.terminal.send_key(&key_event);
14691478
             return Ok(());