# edit predictions: Preview while holding modifier mode \(\#24316\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8ed8b4d2ec87f299e6cf1ed536a8960720295205

Requested commit: 8ed8b4d2ec87f299e6cf1ed536a8960720295205

Commit: 8ed8b4d2ec87f299e6cf1ed536a8960720295205

Tree: 53bb24036b634b44be938c3f204a9ee9f435e488

Author: Agus Zubiaga

Committer: GitHub

## Message

```
edit predictions: Preview while holding modifier mode (#24316)

This PR adds a new `inline_completions.inline_preview` config which can
be set to `auto` (current behavior) or to `when_holding_modifier`.
When set to the latter, instead of showing edit prediction previews
inline in the buffer, we'll show it in a popover (even when there's no
LSP completion) so your isn't constantly moving as completions arrive.


https://github.com/user-attachments/assets/3615d151-3633-4ee4-98b9-66ee0aa735b8

Release Notes:

- N/A

---------

Co-authored-by: Danilo <danilo@zed.dev>
```

## Parents

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

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