Skip to content

"Slow" navigation in insert mode -> completions that mangle items #8264

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

Closed
nuke-web3 opened this issue Sep 12, 2023 · 2 comments
Closed

"Slow" navigation in insert mode -> completions that mangle items #8264

nuke-web3 opened this issue Sep 12, 2023 · 2 comments
Labels
C-bug Category: This is a bug

Comments

@nuke-web3
Copy link
Contributor

nuke-web3 commented Sep 12, 2023

Summary

Related to #8263 , when I am navigating with arrow keys in insert mode "slowly" enough for the lsp to suggest a term for where the cursor is, the lsp result is injected where I intended to just keep navigating.

This is a massive pain as I am in insert mode and working, with this unwanted junk injected... and now I cannot undo only that junk, but the entire insert 😮‍💨 - so I have to manually delete and replace the item. Big waste of time.

Reproduction Steps

  1. enter insert mode
  2. "slowly" move up/down lines with a cursor inside some item
  3. LSP autocomplete injects and cycles options, where you meant to move up/down a line.
  4. you cannot u in normal mode to undo just that injection, but the whole insert.
  5. Manually edit the injected junk to get back the original item

Helix log

No response

Platform

Linux

Terminal Emulator

wezterm 20230712-072601-f4abf8fd

Helix Version

helix 23.05 (7f5940b)

@nuke-web3 nuke-web3 added the C-bug Category: This is a bug label Sep 12, 2023
@pascalkuthe
Copy link
Member

Helix is a modal editor. You are not supposed to move in insert mode. Normal mode is intended for movement.

Duplicate of #2027

@pascalkuthe pascalkuthe closed this as not planned Won't fix, can't repro, duplicate, stale Sep 12, 2023
@nuke-web3
Copy link
Contributor Author

One "solution" is to notice this is happening and press C+c to cancel the injection. But that is also very un-ergonomic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

2 participants