You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
can't fuzzy match a single completion candidate #14912
Wait, not sure I understand. We added fuzzy to 'completeopt' option. That is about how vim handles the completion menu and list of already existing candidates. So my understand for fuzzy was, when enabled, the reduction of the list of candidates happens by fuzzy matching, but how the list of candidates is created is depends on what kind of completion mode was used (e.g. those of i_CTRL-X mappings). One may use fuzzy-completion there as well (using a custom omni-completion), but you may as well simply use regex based search of atoms inside the current buffer of make use of the dictionary.
So given that, I would expect that completeopt+=fuzzy doesn't make a difference for x<C-N> since the list of candidates is build using default keyword local completion (even when there is only 1 candidate).
Activity
habamax commentedon Jun 4, 2024
@glepnir fyi
glepnir commentedon Jun 4, 2024
Issues description are not as detailed as we discussed in the commit section.
menuonewhen only have one matched item.<C-N>/<C-p>reproduce stepthanks for report
chrisbra commentedon Jun 4, 2024
Wait, not sure I understand. We added
fuzzyto'completeopt'option. That is about how vim handles the completion menu and list of already existing candidates. So my understand forfuzzywas, when enabled, the reduction of the list of candidates happens by fuzzy matching, but how the list of candidates is created is depends on what kind of completion mode was used (e.g. those ofi_CTRL-Xmappings). One may use fuzzy-completion there as well (using a custom omni-completion), but you may as well simply use regex based search of atoms inside the current buffer of make use of the dictionary.So given that, I would expect that
completeopt+=fuzzydoesn't make a difference forx<C-N>since the list of candidates is build using default keyword local completion (even when there is only 1 candidate).runtime(doc): clarify how fuzzy 'completeopt' should work
chrisbra commentedon Jun 4, 2024
I made a small change to the doc 2a2c4ff on how this should work. I hope we can make it work then as documented.
vim-patch:2a2c4ff: runtime(doc): clarify how fuzzy 'completeopt' shou…
vim-patch:2a2c4ff: runtime(doc): clarify how fuzzy 'completeopt' shou…
habamax commentedon Jun 12, 2024
It is actually a bit worse. It can't complete at all if
menuis not incompleteopt:glepnir commentedon Jun 12, 2024
emm okay .. i am working on it.
glepnir commentedon Jun 12, 2024
habamax commentedon Jun 12, 2024
Is this patch against the master branch here?
git applyfails...glepnir commentedon Jun 12, 2024
latest commit of master.
habamax commentedon Jun 12, 2024
applied patch manually:
set completeopt=fuzzyit doesn't completeglepnir commentedon Jun 12, 2024
Took some time. Tests are working fine. PR will be submitted after cleaning up
39 remaining items
vim-patch:26e4b00: runtime(doc): Revert outdated comment in completeo…
vim-patch:26e4b00: runtime(doc): Revert outdated comment in completeo…
vim-patch:26e4b00: runtime(doc): Revert outdated comment in completeo…
vim-patch:26e4b00: runtime(doc): Revert outdated comment in completeo…
vim-patch:26e4b00: runtime(doc): Revert outdated comment in completeo…
vim-patch:26e4b00: runtime(doc): Revert outdated comment in completeo…
vim-patch:26e4b00: runtime(doc): Revert outdated comment in completeo…
vim-patch:26e4b00: runtime(doc): Revert outdated comment in completeo…
vim-patch:26e4b00: runtime(doc): Revert outdated comment in completeo…
vim-patch:26e4b00: runtime(doc): Revert outdated comment in completeo…
vim-patch:26e4b00: runtime(doc): Revert outdated comment in completeo…
vim-patch:26e4b00: runtime(doc): Revert outdated comment in completeo…
vim-patch:26e4b00: runtime(doc): Revert outdated comment in completeo…
vim-patch:26e4b00: runtime(doc): Revert outdated comment in completeo…
vim-patch:26e4b00: runtime(doc): Revert outdated comment in completeo…