forge
Explore
Log in

Don't you dare go Hollow

The keys list is the dock's KEYS tab and the spine ends in one ?

Browse files at this commit

c14d76f9a82d2febff77265ecf42f97f73a94267Ahmet Kaan GümüşParent: e1b0b68
  • feat
    • the keys list is the dock's KEYS tab and the spine ends in one ?
Show full message
✨ feat(app): the keys list is the dock's KEYS tab and the spine ends in one ?

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.rsmodified+3 -3
@@ -1175,9 +1175,9 @@ impl Keymap {
1175 // key stays the one people look for -- the modifier is what1175 // key stays the one people look for -- the modifier is what
1176 // makes it an intention ([`crate::cancels_export`]).1176 // makes it an intention ([`crate::cancels_export`]).
1177 b(ActionId::CancelExport, "escape", true),1177 b(ActionId::CancelExport, "escape", true),
1178- // The help key (DESIGN.md §9): held, it opens the keys1178+ // The help key (DESIGN.md §9, amended 2026-09-09): it swings
1179- // overlay; released, it closes -- the room's own `on_key_up`1179+ // the dock to its KEYS tab, and a second press (or `escape`)
1180- // (`ui/stance.rs`) is what makes that a hold and not a latch.1180+ // swings it back -- a toggle, not a hold, not a modal.
1181 // Its own key, not `shift+/`: gpui reports a shifted symbol as1181 // Its own key, not `shift+/`: gpui reports a shifted symbol as
1182 // the glyph itself, so `"?"` is what a stroke of it reports.1182 // the glyph itself, so `"?"` is what a stroke of it reports.
1183 b(ActionId::ShowActions, "?", false),1183 b(ActionId::ShowActions, "?", false),
crates/app/src/ui/stance.rsmodified+4 -0
@@ -448,6 +448,10 @@ fn ghost(
448 gpui::FontWeight::MEDIUM,448 gpui::FontWeight::MEDIUM,
449 ))449 ))
450 .text_color(rgb(INK2()))450 .text_color(rgb(INK2()))
451+ // The pointer's way to this glyph has to be findable by name like
452+ // every other ghost's (`spine_stance`), or a hand -- and the harness
453+ // -- can only reach the KEYS tab through its dock tab.
454+ .children(hitmap::action(action, true))
451 .child(glyph.to_string())455 .child(glyph.to_string())
452 // Every command wears its chord (DESIGN §4) -- except the one whose456 // Every command wears its chord (DESIGN §4) -- except the one whose
453 // glyph already IS its stroke: `?` over `?` read as two question457 // glyph already IS its stroke: `?` over `?` read as two question