[vim/vim] completeopt=fuzzy causes source priority to become ineffective (Issue #20856)

2 views
Skip to first unread message

Mao-Yining

unread,
11:15 AM (11 hours ago) 11:15 AM
to vim/vim, Subscribed
mao-yining created an issue (vim/vim#20856)

vim --clean

vim9script
set autocomplete
set completeopt=fuzzy
set complete=FF1,FF2
def g:F1(findstart: bool, _): any
        if findstart
                return 0
        endif
        return ['ad', 'ae', 'af']
enddef
def g:F2(findstart: bool, _): any
        if findstart
                return 0
        endif
        return ['a', 'ab', 'ac']
enddef

Type 'a'. Now 'a' is the first, but it comes from the second source.

I hope the fuzzy sort only sort items in the source, and respect the priority of the source.

CC: @glepnir @girishji I am not sure whether this is a bug or feature request.


nosort will disable all sorts which is not the ideal solution for this problem.

Thanks.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20856@github.com>

girish

unread,
2:14 PM (8 hours ago) 2:14 PM
to vim/vim, Subscribed
girishji left a comment (vim/vim#20856)

It is working as expected. fuzzy sort sorts the whole list irrespective of source.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20856/5095059494@github.com>

Reply all
Reply to author
Forward
0 new messages