Use editor::AcceptEditPrediction in vim keymap (#24596)

* Overrides the action handler to switch to insert mode after jumps.

* Returns `vim::Tab` to its behavior from before #24418

Release Notes:

- N/A

Co-authored-by: Conrad <conrad@zed.dev>
This commit is contained in:
Michael Sloan
2025-02-10 19:20:13 -07:00
committed by GitHub
co-authored by Conrad
parent c89ad65782
commit 4c881b6a12
3 changed files with 36 additions and 24 deletions
+18
View File
@@ -694,5 +694,23 @@
"shift-x": "git::StageAll",
"shift-u": "git::UnstageAll"
}
},
{
"context": "os == macos && edit_prediction",
"bindings": {
"alt-tab": "editor::AcceptEditPrediction"
}
},
{
"context": "os != macos && edit_prediction",
"bindings": {
"alt-enter": "editor::AcceptEditPrediction"
}
},
{
"context": "edit_prediction && !edit_prediction_requires_modifier",
"bindings": {
"tab": "editor::AcceptEditPrediction"
}
}
]