From c14d76f9a82d2febff77265ecf42f97f73a94267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 9 Sep 2026 20:56:51 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(app):=20the=20keys=20list=20is?= =?UTF-8?q?=20the=20dock's=20KEYS=20tab=20and=20the=20spine=20ends=20in=20?= =?UTF-8?q?one=20=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The plate over the bench is gone with its scrim: the list rides the dock beside SOURCES and CLIP, stable geography that occludes nothing, scrolls like its neighbours and needs no heading prose or esc hint because the tab strip is the way back. `?` swings the dock there and a second `?` or `escape` swings it back — a toggle, not a hold, and not a card, so every other stroke keeps meaning what the spine says it means. The spine's `?` ghost drops the badge that only repeated its own glyph ("why two ? exists") and registers in the hitmap like every other ghost, so a pointer can reach the list without the keyboard. --- crates/app/src/keymap.rs | 6 +++--- crates/app/src/ui/stance.rs | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/crates/app/src/keymap.rs b/crates/app/src/keymap.rs index 31e330d..f10c8e4 100644 --- a/crates/app/src/keymap.rs +++ b/crates/app/src/keymap.rs @@ -1175,9 +1175,9 @@ impl Keymap { // key stays the one people look for -- the modifier is what // makes it an intention ([`crate::cancels_export`]). b(ActionId::CancelExport, "escape", true), - // The help key (DESIGN.md §9): held, it opens the keys - // overlay; released, it closes -- the room's own `on_key_up` - // (`ui/stance.rs`) is what makes that a hold and not a latch. + // The help key (DESIGN.md §9, amended 2026-09-09): it swings + // the dock to its KEYS tab, and a second press (or `escape`) + // swings it back -- a toggle, not a hold, not a modal. // Its own key, not `shift+/`: gpui reports a shifted symbol as // the glyph itself, so `"?"` is what a stroke of it reports. b(ActionId::ShowActions, "?", false), diff --git a/crates/app/src/ui/stance.rs b/crates/app/src/ui/stance.rs index da94a51..e110575 100644 --- a/crates/app/src/ui/stance.rs +++ b/crates/app/src/ui/stance.rs @@ -448,6 +448,10 @@ fn ghost( gpui::FontWeight::MEDIUM, )) .text_color(rgb(INK2())) + // The pointer's way to this glyph has to be findable by name like + // every other ghost's (`spine_stance`), or a hand -- and the harness + // -- can only reach the KEYS tab through its dock tab. + .children(hitmap::action(action, true)) .child(glyph.to_string()) // Every command wears its chord (DESIGN §4) -- except the one whose // glyph already IS its stroke: `?` over `?` read as two question