It should allow user commands to have a single argument with spaces.
For example given the following Test command and TestComplete function:
vim9script
def TestComplete(A: string, _: string, : number): list
var all = ["qqqq", "aaaa", "qq aa"]
return all->matchfuzzy(A)
enddef
command! -nargs= -complete=customlist,TestComplete Test echo
:Test q a<tab> should successfully complete qq aa
Relates #20102
https://github.com/vim/vim/pull/20189
(2 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()