-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pressing tab in case of edit completion inserts tab instead of finishing completion #25406
Comments
@mspanc Thank you for reporting this, I'm sorry for this experience. Can we get your keymap.json setup if you have one at all, and see if its interacting with it? |
In the video you can see that it is showing We are currently looking into how to improve cases like this. |
You can add this keymap to always use ai completion even when there's a language server completion {
"context": "Editor && edit_prediction_conflict",
"bindings": {
"tab": "editor::AcceptEditPrediction"
}
} Found here: https://zed.dev/docs/completions |
Thank you for the hint. However, I don't think it's valid UX to expect from the user to recognise what is LSP completion, and what is AI completion and have two different key bindings by default. When you're focused on coding, you don't care what is the source of completion - you want to accept it as long as it works for you. And you want to this mindlessly by pressing the same key. Current approach is IMO quite distracting. |
Moreover I am accepting completions 10x more often than having an intention to add a tab when the completion happens. The completions are being rarely shown when the cursor is located in a position that usually would have ended up with adding tab. Look at my video from the first comment - this is a great example. There's 0,0001% chance my intention was to add a tab in that place in the code - there's no if or any other block, its very end of the function - I'm rather willing to write |
Summary
Since +/- last update, in most cases, when I try to accept code completion by pressing tab, Zed inserts tab instead of finishing completion.
See that video:
Nagranie.z.ekranu.2025-02-22.o.20.56.53.mov
Actual Behavior:
Zed inserts tab
Expected Behavior:
Zed completes the edit
Zed Version and System Specs
Zed: v0.174.6 (Zed)
OS: macOS 15.3.0
Memory: 64 GiB
Architecture: aarch64
The text was updated successfully, but these errors were encountered: