# Add \`editor::ToggleInlayHints\` command and a bar to toggle editor-related items \(\#2839\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 988ea3c16be5d78d2cecd0222d6c36e537ffb979

Requested commit: 988ea3c16be5d78d2cecd0222d6c36e537ffb979

Commit: 988ea3c16be5d78d2cecd0222d6c36e537ffb979

Tree: 2db15172dc6a0d8eac4f26d87a834fc31435d658

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Add `editor::ToggleInlayHints` command and a bar to toggle editor-related items (#2839)

Closes
https://linear.app/zed-industries/issue/Z-2735/make-inlay-hints-discoverable
Deals with https://github.com/zed-industries/community/issues/1764

Adds `editor::ToggleInlayHints` command and a new panel with two
buttons for 
* toggling hints on/off for every editor separately (overrides settings)

Would benefit from a new icon.

* toggling buffer search on/off 

Does not have a keybinding shown in its tooltip, that is a separate
issue with the way `KeystrokeLabel` gets these for panels not in the
view directly.

Release Notes:

- Adds `editor::ToggleInlayHints` command and a bar to toggle
editor-related items
```

## Parents

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

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

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