Skip to content

Configurable sort order for project autosuggest (+ trigger) #2308

Open

Description

@thatlenno

Currently the project autosuggest (used for the projects field, e.g. typing + to link a task to a project) always ranks candidates by fuzzy-match score (d.sort((a,b) => b.score - a.score) in the compiled source). With an empty or very short query, most/all candidate notes score near-identically, so the list effectively falls back to Obsidian's internal vault file order — not alphabetical, and not deterministic from the user's perspective.

For vaults with a moderate number of project notes (10-30+), it'd help a lot to have a setting (e.g. under projectAutosuggest) to choose the tie-break/base sort order, e.g. alphabetical vs relevance (current behavior), similar to the sortOrder option already used elsewhere in the plugin (name-asc, name-desc, etc.).

Version: 4.12.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions