Consider using a different default keybinding for lsp-inline-completion-accept
in terminal or document it and recommend a different keybinding
#4657
Labels
Thank you for the bug report
lsp-mode
related packages.M-x lsp-start-plain
Bug description
Terminals translate
Ctrl-Enter
toEnter
. Currently,lsp-inline-completion-accept
by default is bound toCtrl-Enter
. This is confusing to a user unfamiliar with terminal key pitfalls: The user follows the instructions and hitsCtrl-Enter
, but actually Emacs receivesEnter
, whichlsp-inline-completion-mode
translates to "Cancel", the exact opposite.A more detailed explanation on keys in terminal emulators: https://unix.stackexchange.com/a/161725/38242
Steps to reproduce
Launch a terminal, try to accept a completion generated by
lsp-inline-completion-mode
withCtrl-Enter
.Expected behavior
Either inform that they should use a different keybinding, or use a different default keybinding in terminal.
Which Language Server did you use?
N/A
OS
Linux
Error callstack
No response
Anything else?
Alternatively, we can bind both
Ctrl-Enter
andAlt-Enter
tolsp-inline-completion-mode
.The text was updated successfully, but these errors were encountered: