Hello! I use the TAB-and-Go completion, and, for awhile, I was a smidge annoyed that when I cycled through the candidates and pressed "SPC" that the candidate wasn't inserted and instead a space was added as a separator.
I release that, by default, corfu-separator is "SPC" or key 32. Also for Orderless I have it's orderless-component-separator as orderless-escapable-split-on-space:
Even if you want to split on spaces you might want to be able to escape those spaces or to enclose space in double quotes (as in shell argument parsing). For backslash-escaped spaces set orderless-component-separator to the function orderless-escapable-split-on-space; for shell-like double-quotable space, set it to the standard Emacs function split-string-and-unquote.
Only just now did I see the following in the wiki:
In TAB-and-Go style, if a candidate is selected, then further input commits that candidate unless it is the first one. In order that the first candidate is also committed on further input, add this to your configuration:
However this gives me the above mentioned error whenever I try to insert any of the characters after tabbing to any candidate in the completion list. Here's the debug output:
Hello! I use the TAB-and-Go completion, and, for awhile, I was a smidge annoyed that when I cycled through the candidates and pressed "SPC" that the candidate wasn't inserted and instead a space was added as a separator.
I release that, by default,
corfu-separator
is "SPC" or key 32. Also for Orderless I have it'sorderless-component-separator
asorderless-escapable-split-on-space
:Only just now did I see the following in the wiki:
However this gives me the above mentioned error whenever I try to insert any of the characters after tabbing to any candidate in the completion list. Here's the debug output:
Also I realize that my
completion-styles
is not justbasic
. To help, here's the bits from my configuration for orderless and corfu:So the expected behavior is:
corfu-auto-delay
"TAB"
/"<tab>"
/[tab]
will cycle through the candidates and "select" but not "insert" them"SPC"
/"<space>"
/[space]
/" "
will insert the currently selected candidate, or any of the above listed keysMaybe this is just a documentation thing, or a I-can't-actually-read thing.