Skip to content

Rank elements with matching beginning higher in matchfuzzy #16504

Description

@habamax

Consider following:

echo matchfuzzy(['Cursor', 'lCursor', 'shCurlyIn', 'shCurlyError', 'TracesCursor', 'CurSearch', 'CursorLine'], 'Cur')

# outputs
# lCursor, shCurlyIn, shCurlyError, TracesCursor, Cursor, CurSearch, CursorLine

# I would expect the output
# Cursor, CurSearch, CursorLine, lCursor, shCurlyIn, shCurlyError, TracesCursor

Image

Activity

  1. self-assigned this
    on Mar 5, 2025
  2. added a commit that references this issue on Mar 16, 2025
    28e40a7
  3. added 5 commits that reference this issue on Mar 18, 2025
    784718f
    a6382a2
    fa962e5
    1a976bc
    566669c
  4. added a commit that references this issue on Mar 27, 2025
    162edf7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions