commit 61ca550d92f8a05293ac907c50243bde35224762
parent 7b7ddedee1bf15185db782c2c3f449491eb4da8b
Author: William Casarin <jb55@jb55.com>
Date: Mon, 26 Jan 2026 18:29:12 -0800
dave: add N keybinding to spawn new agent and focus input
The KeyAction::NewAgent variant existed but was never mapped to a key.
Now pressing N (when no text input has focus) spawns a new agent and
focuses the input field.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/crates/notedeck_dave/src/ui/keybindings.rs b/crates/notedeck_dave/src/ui/keybindings.rs
@@ -73,6 +73,11 @@ pub fn check_keybindings(ctx: &egui::Context, has_pending_permission: bool) -> O
}
}
+ // N to spawn a new agent
+ if i.key_pressed(Key::N) {
+ return Some(KeyAction::NewAgent);
+ }
+
None
})
}