# which_key: Add a pending key binding indicator \(\#63343\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/d85eade7ab475de6d11a193beccf1951be2ff371)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: d85eade7ab475de6d11a193beccf1951be2ff371

Requested commit: d85eade7ab475de6d11a193beccf1951be2ff371

Commit: d85eade7ab475de6d11a193beccf1951be2ff371

Tree: d45f5d5255a823a4bca62800f14468acea83a328

Author: Smit Barmase

Committer: GitHub

## Message

```
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>
```

## Parents

- [f0d8b0b0cde9a5b5000017c1e60db3ebea274b88](https://git.cafe/gitcafe/zed/commit/f0d8b0b0cde9a5b5000017c1e60db3ebea274b88?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/d85eade7ab475de6d11a193beccf1951be2ff371?format=markdown)
