Skip to content

0.2.0 — Better mention ranking, cleaner code

Choose a tag to compare

@Amato21 Amato21 released this 18 Jul 15:36
27eda1e

Fixed

  • Mention suggester ranking on large vaults: on an 800-note vault, querying something like "Vivien" could surface a totally unrelated note ("Vivy - Fluorite Eye's Song") instead of what you meant, because Obsidian's fuzzy search matches by scattered subsequence and results were never scored or sorted. Matches are now ranked in tiers — exact match, then "starts with", then "contains" — with fuzzy matching only as a last-resort fallback. When nothing solid matches, "Create ..." is now shown first instead of buried at the end.
  • Cleaned up the four issues flagged by the Obsidian plugin review bot: an unawaited promise, an unsafe any assignment, an EditorSuggest.selectSuggestion override with the wrong return type, and a dependency swap (builtin-modules → Node's own module.builtinModules).

Added

  • A regression test suite (npm test) covering the ranking fix, proven to actually catch the bug (reverted the fix, confirmed the test failed with the exact reported symptom, then restored it).

See CHANGELOG.md for details.

Install

Download main.js, manifest.json, and styles.css below and copy them into <vault>/.obsidian/plugins/lightweight-mentions/, or add as a beta plugin via BRAT using this repo's URL.