docs: Improve introduction to Edit Prediction (#26620)

As I was writing a blog post about Edit Prediction, I realized we didn't
have a great section in the docs I could link to talking about
configuring it. We weren't: 1) explicitly exposing the settings code to
add Zed as the edit prediction provider, and 2) not showing an image of
the title bar banner.

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2025-03-13 09:03:49 -03:00 committed by GitHub
parent 4ecd1b5174
commit d9590f3f0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,10 +22,24 @@ For more information, see:
## Edit Predictions {#edit-predictions} ## Edit Predictions {#edit-predictions}
Zed has built-in support for predicting multiple edits at a time via its [Zeta model](https://huggingface.co/zed-industries/zeta). Clicking "Introducing: Edit Prediction" on the top right will open a brief prompt setting up this feature. Zed has built-in support for predicting multiple edits at a time [via Zeta](https://huggingface.co/zed-industries/zeta), Zed's open-source and open-data model.
Edit predictions appear as you type, and most of the time, you can accept them by pressing `tab`. Edit predictions appear as you type, and most of the time, you can accept them by pressing `tab`.
### Configuring Zeta
Zed's Edit Prediction was initially introduced via a banner on the title bar.
Clicking on it would take you to a modal with a button ("Enable Edit Prediction") that sets `zed` as your `edit_prediction_provider`.
![Onboarding banner and modal](https://zed.dev/img/edit-prediction/docs.webp)
But, if you haven't come across the banner, start using Zed's Edit Prediction by adding this to your settings:
```json
"features": {
"edit_prediction_provider": "zed"
},
```
### Conflict With Other `tab` Actions {#edit-predictions-conflict} ### Conflict With Other `tab` Actions {#edit-predictions-conflict}
By default, when `tab` would normally perform a different action, Zed requires a modifier key to accept predictions: By default, when `tab` would normally perform a different action, Zed requires a modifier key to accept predictions: