Skip to content

Should fuzzy completion change the candidate list? #15294

Description

@roccomao

The issue was introduced by patch 9.1.0598

As #14912 (comment) and #15193 (comment) said, but currently fuzzy option of completeopt also affects how candidates are collected. Should fuzzy completion change the candidate list? I don't have enough reasons to say whether this should or should not be (Because I won't actually implement it). I don't know if it's difficult to implement. If it is easy to implement, can we add a fuzzycollect option to control whether to fuzzy collect candidates, as discussed in #14976 ? (now the fuzzycollect option has been deleted) Otherwise, the document may need to be revised to describe it more accurately.

Activity

  1. techntools commented on Jul 20, 2024

    @techntools

    @roccomao I am using fuzzy like this to only filter the candidates

    #15056 (comment)

  2. roccomao commented on Jul 21, 2024

    @roccomao
    ContributorAuthor

    @techntools Thanks for sharing, this is really useful. Back to the issue, do you also think that separating the fuzzy collection and fuzzy filtering options will give us more configuration space and convenience?

  3. chrisbra commented on Jul 21, 2024

    @chrisbra
    Member

    I would still think this makes sense.

  4. techntools commented on Jul 21, 2024

    @techntools

    @roccomao

    That's why fuzzycollect was introduced. For whatever reason author decided to revert it, its upto to maintainers and author to reinstate the option.

    Ease of maintainance may trump the convenience of configuration

    For my #15056 (comment), I made arrangements with/without fuzzycollect

  5. roccomao commented on Jul 21, 2024

    @roccomao
    ContributorAuthor

    Maybe we can mention the author @glepnir, I don't know if it will be difficult to implement and what you are considering, but here are some ideas you can consider. In fact, this is also discussed in issue #15295, Sorry to bother you so that you can receive some information from this issue.

  6. glepnir commented on Jul 22, 2024

    @glepnir
    Member

    I want to continue to explain the idea I mentioned earlier. Adding fuzzy:number is the current working method when number is 0. All fuzzy scores > 0 will be added to pmenu. When it is not 0, for example fuzzy:4, then type cmpd cmp to collect all words d for fuzzy filter. fuzzycollect also sounds reasonable. But adding new options has a cost. Let's try to make some slight changes to the current basis to satisfy everyone. If not, then we will consider fuzzycollect

  7. added a commit that references this issue on Mar 6, 2025
    f31cfa2
  8. added 9 commits that reference this issue on Mar 7, 2025
    510d575
    f6b5613
    1deb4af
    5b3fa37
    5807339
    160c0c9
    e997e0c
    5b9ba18
    3f586c6
  9. added 6 commits that reference this issue on Mar 21, 2025
    58c1140
    0e53cf5
    c533f86
    9a24104
    fa96502
    90d59e6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions