Skip to content

Files plugin v34: space-separated query no longer finds underscore-separated filenames #1629

Description

@Pranske

Environment:

  • Linux Mint 22 Cinnamon / Ubuntu 24.04 base
  • Albert v34.0.10 Qt6
  • Built-in Files plugin

Regression:
In older Albert versions, searching "deimos ultra" matched files named like:
BFT_Deimos_Ultra_BT_B_EN.pdf

In v34.0.10, the same query returns no result. Searching with the underscore form works, but space-separated multi-token search no longer matches underscore-separated filenames.

Reproducer:

  1. Create/index a file named:
    BFT_Deimos_Ultra_BT_B_EN.pdf
  2. Search:
    deimos ultra
  3. Expected:
    File is found.
  4. Actual:
    No result.

Probable cause:
v34 changed tokenization to Unicode word boundaries. Under this model, underscores are treated as word/connector characters, not as separators. For file search, this is undesirable because underscores, hyphens, and dots often function as human word separators in filenames.

Requested fix:
Please allow the Files plugin to index normalized lookup aliases, e.g.:

  • "_" → " "
  • "-" → " "
  • "." → " "

or expose a plugin setting such as:
File name separators: "_-. "

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions