commit 7a6ea84b80af8cc21f0e95ad8c26933fe64935fa
parent 7a05b54c0749f6cd06af225e88f9c2d2df99a2da
Author: William Casarin <jb55@jb55.com>
Date: Tue, 27 Jan 2026 08:58:52 -0800
dave: show plan mode keybind hint when Ctrl is held
Show a temporary "Plan" badge with "P" keybind indicator when Ctrl is
held, matching the pattern used for other keybindings like N and G.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat:
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/crates/notedeck_dave/src/ui/dave.rs b/crates/notedeck_dave/src/ui/dave.rs
@@ -616,12 +616,22 @@ impl<'a> DaveUi<'a> {
dave_response = DaveResponse::send();
}
- // Show plan mode indicator
+ // Show plan mode indicator or Ctrl+P hint
+ let ctrl_held = ui.input(|i| i.modifiers.ctrl);
if self.plan_mode_active {
super::badge::StatusBadge::new("PLAN")
.variant(super::badge::BadgeVariant::Info)
.show(ui)
.on_hover_text("Ctrl+P to toggle plan mode");
+ if ctrl_held {
+ super::keybind_hint(ui, "P");
+ }
+ } else if ctrl_held {
+ // Show temporary plan hint when Ctrl is held
+ super::badge::StatusBadge::new("Plan")
+ .variant(super::badge::BadgeVariant::Default)
+ .show(ui);
+ super::keybind_hint(ui, "P");
}
let r = ui.add(