Separate actions for accepting the inline suggestions and completions (#12094)

Release Notes:
- Added `editor::AcceptInlineCompletion` action (bound to Tab by
default) for accepting inline completions. ([6788](https://github.com/zed-industries/zed/issues/6788))

---------

Signed-off-by: Raphael Lüthy <raphael.luethy@fhnw.ch>
Co-authored-by: Conrad Irvin <conrad@zed.dev>
This commit is contained in:
Raphael Lüthy 2024-05-22 12:51:21 +02:00 committed by GitHub
parent 7c9c80d663
commit e68ef944d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 36 additions and 30 deletions

View file

@ -501,6 +501,12 @@
"tab": "editor::ConfirmCompletion"
}
},
{
"context": "Editor && inline_completion && !showing_completions",
"bindings": {
"tab": "editor::AcceptInlineCompletion"
}
},
{
"context": "Editor && showing_code_actions",
"bindings": {

View file

@ -515,6 +515,12 @@
"tab": "editor::ConfirmCompletion"
}
},
{
"context": "Editor && inline_completion && !showing_completions",
"bindings": {
"tab": "editor::AcceptInlineCompletion"
}
},
{
"context": "Editor && showing_code_actions",
"bindings": {