Migrate keymap and settings + edit predictions rename (#23834)
- [x] snake case keymap properties - [x] flatten actions - [x] keymap migration + notfication - [x] settings migration + notification - [x] inline completions -> edit predictions ### future: - keymap notification doesn't show up on start up, only on keymap save. this is existing bug in zed, will be addressed in seperate PR. Release Notes: - Added a notification for deprecated settings and keymaps, allowing you to migrate them with a single click. A backup of your existing keymap and settings will be created in your home directory. - Modified some keymap actions and settings for consistency. --------- Co-authored-by: Piotr Osiewicz <piotr@zed.dev> Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
co-authored by
Piotr Osiewicz
Max Brunsfeld
parent
a1544f47ad
commit
00c2a30059
+12
-12
@@ -29,7 +29,7 @@ To use GitHub Copilot (enabled by default), add the following to your `settings.
|
||||
```json
|
||||
{
|
||||
"features": {
|
||||
"inline_completion_provider": "copilot"
|
||||
"edit_prediction_provider": "copilot"
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -43,7 +43,7 @@ To use Supermaven, add the following to your `settings.json`:
|
||||
```json
|
||||
{
|
||||
"features": {
|
||||
"inline_completion_provider": "supermaven"
|
||||
"edit_prediction_provider": "supermaven"
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -56,23 +56,23 @@ Once you have configured an Edit Prediction provider, you can start using edit p
|
||||
|
||||
There are a number of actions/shortcuts available to interact with edit predictions:
|
||||
|
||||
- `editor: accept inline completion` (`tab`): To accept the current edit prediction
|
||||
- `editor: accept partial inline completion` (`ctrl-cmd-right`): To accept the current edit prediction up to the next word boundary
|
||||
- `editor: show inline completion` (`alt-tab`): Trigger an edit prediction request manually
|
||||
- `editor: next inline completion` (`alt-tab`): To cycle to the next edit prediction
|
||||
- `editor: previous inline completion` (`alt-shift-tab`): To cycle to the previous edit prediction
|
||||
- `editor: accept edit prediction` (`tab`): To accept the current edit prediction
|
||||
- `editor: accept partial edit prediction` (`ctrl-cmd-right`): To accept the current edit prediction up to the next word boundary
|
||||
- `editor: show edit prediction` (`alt-tab`): Trigger an edit prediction request manually
|
||||
- `editor: next edit prediction` (`alt-tab`): To cycle to the next edit prediction
|
||||
- `editor: previous edit prediction` (`alt-shift-tab`): To cycle to the previous edit prediction
|
||||
|
||||
### Disabling Inline-Completions
|
||||
### Disabling Edit Prediction
|
||||
|
||||
To disable completions that appear automatically as you type, add the following to your `settings.json`:
|
||||
To disable predictions that appear automatically as you type, add the following to your `settings.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"show_inline_completions": false
|
||||
"show_edit_predictions": false
|
||||
}
|
||||
```
|
||||
|
||||
You can trigger edit predictions manually by executing `editor: show inline completion` (`alt-tab`).
|
||||
You can trigger edit predictions manually by executing `editor: show edit prediction` (`alt-tab`).
|
||||
|
||||
You can also add this as a language-specific setting in your `settings.json` to disable edit predictions for a specific language:
|
||||
|
||||
@@ -80,7 +80,7 @@ You can also add this as a language-specific setting in your `settings.json` to
|
||||
{
|
||||
"language": {
|
||||
"python": {
|
||||
"show_inline_completions": false
|
||||
"show_edit_predictions": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user