From d9590f3f0ef74f42009772d54bde50e4378fa92a Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Thu, 13 Mar 2025 09:03:49 -0300 Subject: [PATCH] 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 --- docs/src/completions.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/docs/src/completions.md b/docs/src/completions.md index 3836f53d62..09019e3fae 100644 --- a/docs/src/completions.md +++ b/docs/src/completions.md @@ -22,10 +22,24 @@ For more information, see: ## 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`. +### 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} By default, when `tab` would normally perform a different action, Zed requires a modifier key to accept predictions: