Skip to content

Match Settings

MituuZ edited this page Feb 9, 2025 · 2 revisions

Match settings

Is part of Global Settings.

Test bench

You can test the match options with live updating with the test bench (does not update in place). It shows each individual score for each file and you can tweak it as you like.

image

Tolerance

Used to make the file search a bit more flexible. Tells how many wrong characters can be present before deciding that a file path cannot match the search string.

Match characters multiple times

Counts occurrences of each unique character present in the search string.

e.g. search string "file" has 5 occurrences in "/dir/file"

This option can affect performance more than the others, as it requires full passes over the file paths.

Single char

Set the multiplier for each individual character that was matched with "Match characters multiple times".

The final result is divided by 10 to avoid using floats and still get more precise control.

Partial path match

Tells how much static score does a partial path match add. This can be used to prioritize filename matches or pointing to the correct package/directory with a space.

Examples

  • "file" matches "/dir/file"
  • "dir" matches "/dir/file"
  • "ext" matches "/dir/file.ext"

Streak modifier

Note! The actual streak might not be the longest possible streak.

When checking that each character from the search string is present and ordered in the file path the longest streak is used to score the entry.

This is used to set the multiplier for the longest streak.

Filename modifier

Search string is checked against each filename and the longest streak is used to score the entry.

This is used to set the multiplier for the filename streak. Thus enabling pushing only filename matches upper in the list.

Clone this wiki locally