Skip to content

Fuzzy search does not respect exact search terms #1358

@sebj54

Description

@sebj54

Describe the bug

When doing a fuzzy search, I often type exact terms because I find that results are strangely sorted. I know that this has already been addressed (see #302) but I don't think it is good enough at the time of writing.

When I search "types", I expect that "Add or update types" be the first result.

image

It might be just an opinion so feel free to discuss it of course :)

Reproduction

  • Run gitmoji -c
  • Type types

System Info

System:
    OS: macOS 14.6.1
    CPU: (8) arm64 Apple M1
    Memory: 105.66 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.15.1 - ~/.nvm/versions/node/v20.15.1/bin/node
    Yarn: 1.22.21 - ~/.nvm/versions/node/v20.15.1/bin/yarn
    npm: 10.8.3 - ~/.nvm/versions/node/v20.15.1/bin/npm
  Browsers:
    Chrome: 129.0.6668.101
    Safari: 17.6

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating duplicates.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions