Repository navigation
refactor(ui): phase 4 — clavier par actions et palette de commandes - #18
Merged
tension-atoi merged 1 commit intoOct 24, 2026
Merged
Conversation
- The registry of keys feeds GPUI's keymap (`keys::bindings`): each entry is a GPUI action bound in the window's `Workspace` context, carried out by one `run_action`. The window-wide `on_key_down` that compared key names by hand only keeps the help's gesture and Tab. - Deeper places keep their keys through `NoAction`: a text field the characters it types (`/` still types a slash), an open menu its arrows, Enter and Escape. A menu's ↓ used to move the catalogue's selection behind it as well. - A command palette (Ctrl+K) lists the registry's actions, found by the words of their labels, one line per thing; choosing one dispatches the action a key would. It takes the focus on open and gives it back on close; its lines are known by their action, not their index; an empty result says so. - F1 toggles the shortcut sheet; any action closes it and ends the hold gesture (Escape left it open once keys became actions). - An empty search field lets Escape go on to the window, which goes back. - Keycaps read Ctrl+F / Alt+← off macOS instead of ⌘F / ⌥←. - Tests: the keymap is derived from the registry; GPUI's real dispatch gives a menu its arrows and a field its slash while Ctrl+F stays the window's; the palette walks, filters, runs and shows its empty state. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012CfvJFUwgYwz6HYiWrec9T
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 4 du refactor front-end inspiré de Skwir. Empilée sur #17.
Ce qui change
keys::bindings) : chaque entrée est une action GPUI liée dans le contexteWorkspace, exécutée par un seulrun_action. Fin duon_key_downglobal qui comparait les noms de touches à la main (il ne garde que le geste d'aide et Tab).NoAction: le champ de texte les caractères (/tape toujours un slash), un menu ouvert ses flèches, Entrée et Échap. Bug corrigé : ↓ dans un menu déplaçait aussi la sélection du catalogue derrière.AGENTS.md.Vérification :
cargo test→ 268 OK, dont des tests qui passent par le vrai dispatch GPUI (menu qui garde ses flèches, champ qui garde son slash, Ctrl+F qui reste à la fenêtre). Clippy : aucun nouvel avertissement. À essayer à la main : Ctrl+K, taper « upd », Entrée ; ouvrir le menu de tri et naviguer aux flèches.Generated by Claude Code