mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-04 06:03:21 +01:00
which_key: Add a pending key binding indicator (#63343)
This PR makes Zed's one-second key binding delay visible. Say both ctrl-w and ctrl-w left have bindings. After you press ctrl-w, Zed waits to see whether left follows. The PR shows that wait in the status bar with a countdown. Hovering the indicator shows which bindings can still match. It also adds a setting to hide the indicator. It does not change how Zed resolves key bindings. <img height="100" alt="dyn-db84a840272e2f6250a3f527a59b1efd" src="https://github.com/user-attachments/assets/e42c6a6c-4677-499f-a1d3-835960ebb21a" /> <br/> <img height="100" alt="dyn-8012278d030b41bc8ebfae1540504eff" src="https://github.com/user-attachments/assets/250928d5-f913-40f0-9068-00ccb5cdf59f" /> <br/> <img height="100" alt="file-5e6ffa90944faa294e7870f471b4e65b" src="https://github.com/user-attachments/assets/c250e6eb-a269-4e2c-a5a0-0be9b5006f99" /> Release Notes: - Added a status bar countdown for pending multi-stroke key bindings. --------- Co-authored-by: Kirill Bulatov <kirill@zed.dev>
This commit is contained in:
1 parent
f0d8b0b0cd
commit
d85eade7ab
21 files changed
+2269
-287
No files matched your search
@@ -358,7 +358,12 @@ TBD: Centered layout related settings
|
||||
// Show/hide a button that displays the buffer's character encoding.
|
||||
// If set to "non_utf8", the button is hidden only for UTF-8 without BOM.
|
||||
// Defaults to "non_utf8".
|
||||
"active_encoding_button": "non_utf8"
|
||||
"active_encoding_button": "non_utf8",
|
||||
// Show/hide an indicator with a countdown while timed multi-stroke
|
||||
// input is pending. Hovering it pauses the timeout. Unless the which-key
|
||||
// menu is enabled, hovering also lists the bindings that could still match.
|
||||
// Defaults to true.
|
||||
"pending_keystrokes_indicator": true
|
||||
},
|
||||
"global_lsp_settings": {
|
||||
// Show/hide the LSP button in the status bar.
|
||||
|
||||
Reference in new issue
Block a user