Flow.Launcher icon indicating copy to clipboard operation
Flow.Launcher copied to clipboard

Enhancement: Improve Search Score Algorithm for Program Plugin

Open ilpssun opened this issue 8 months ago • 1 comments

Checks

  • [x] I have checked that this issue has not already been reported.

  • [x] I am using the latest version of Flow Launcher.

Problem Description

When using the program plugin to start a program, I encounter an issue where my search string is not found as I would expect it. Given a shortcut to a program named metis Client Prod (cprod), I cannot select it by typing cprod, as I would expect, but only if I type (cprod.

Image

To Reproduce

  1. Create a shortcut to a program in a location that is indexed by Flow Launcher and name it metis Client Prod (cprod).
  2. Try to launch the shortcut by typing cprod.

Screenshots

No response

Flow Launcher Version

1.19.5

Windows Build Number

10.0.26100.3476

Error Log

Not relevant; no error reported by Flow Launcher

ilpssun avatar Apr 09 '25 12:04 ilpssun

This issue is probably due to the matched string too far from the start, so the score is low.

We should:

  1. Add full string match score bumping if not already added
  2. Tweak the scoring for scenarios like this where the match is towards the end of the string.

jjw24 avatar Jun 15 '25 01:06 jjw24