-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
CTRL+K (kill_to_line_end) selects autocomplete option #4963
Comments
(Misclick sorry 😅) |
Can you reproduce this on master? It looks like you're on a branch based on #2377 |
I can reproduce this more or less on master (59b886c). Found out about CTRL+k today but everytime before I use it the LSP pops up with the suggestions and CTRL+k inserts the first suggestion from the list. Tested in elixir files using elixir-ls. |
I'm new to the codebase so I could be wrong, but it seems that whenever the completion menu pops up, it takes precedence in handling certain key commands such as |
Fixed in #5070 |
Summary
When I go to insert mode on code that pops up the autocomplete list I can't do CTRL+K (kill_to_line_end), instead it selects an option from the autocomplete menu and inserts into the editor. On a comment for example where there's no autocomplete options, CTRL+K works as expected.
Reproduction Steps
I tried this:
cd helix
# clone of helix repohx helix-core/src/diagnostic.rs
i
inusize
us
completions likeusize2x
etcI expected this to happen:
The characters after the cursor to be deleted
Instead, this happened:
usize
is replaced with the last item in the autocomplete listusizex8
Helix log
Nothing relevant in the log
Platform
macOS
Terminal Emulator
iTerm2
Helix Version
helix 22.05 (06a5bca)
The text was updated successfully, but these errors were encountered: