-
-
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
autocomplete triggers in insert mode #1381
Comments
Wait, are you saying you're just moving around with the arrow keys in insert mode, and it randomly decides to insert parens? Could you provide step by step instructions to reproduce this behavior? |
Ahh, I see; this is just the auto complete being automatically triggered because you're resting the cursor in insert mode. Typically, as a modal editor, the workflow is designed around being in normal mode for navigation and switching to insert mode only to insert text. I'd encourage you to try this kind of workflow to get the most out of the modal editing paradigm. With that said, there are a few config options you could try. As for completing even though there is text to the right, I think this is desired for cases like if you have a chain of method calls and you want to insert another, e.g. |
Closing as the above comment offers a solution. |
Yes, but the issue is that you cannot ignore auto-completion because the vertical movement keys are double-linked and you can't
If that's the case then each language should, assuming they don't already, have an "expression-separators" list of strings and the sequence of characters following the cursor position must be prefixed by one of the elements, or be empty, in order to trigger auto-complete. |
My god! I was looking for this information for 2 days, then I hit this "bug" and found the information where I least expected it! Helix needs to make this information easier to discover! 😄 Thanks! |
This is in the docs: https://docs.helix-editor.com/keymap.html |
Oftentimes autocompletion triggers in the middle of a token and starts changing .methods() which is not desired as I'm just navigating the file in insert mode.
The text was updated successfully, but these errors were encountered: