mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
Show pending key chords in a shared floating shortcut guide (#60637)
## What changed - Replace footer chord hints with a floating guide that shows available completions after a 350 ms delay, including custom prefixes. - Share guide rendering across conversations, transcript overlays, the session picker, startup drafts, hook review, and daemon recovery. Preserve workspace-specific pane labels and filter startup drafts to supported actions. - Adapt the guide to short inline viewports, retain `Esc` cancellation, and redraw when pending chords clear. Consume clicks on the guide so they do not activate controls beneath it. ## Testing Extend tests and snapshots for delayed reveal, timeout, custom prefixes, compact and inline layouts, startup-safe completions, and picker redraws after chord completion or cancellation. GitOrigin-RevId: afa2fe3ae1b5fbea4cd871c17d35206e749c842c
This commit is contained in:
@@ -62,7 +62,7 @@ use crate::keymap::bindings_for_action;
|
||||
use crate::keymap::keymap_action_id;
|
||||
use crate::style::accent_color;
|
||||
use actions::KEYMAP_ACTIONS;
|
||||
use actions::action_label;
|
||||
pub(crate) use actions::action_label;
|
||||
use actions::binding_slot;
|
||||
use actions::format_action_binding_summary;
|
||||
#[cfg(test)]
|
||||
|
||||
Reference in New Issue
Block a user