Big thanks to @jlconlin for the extremely well-diagnosed bug report in #21, fix included — this release ships exactly what was suggested.
Fixed
- Trigger re-firing inside its own link (#21): selecting a note whose name starts with the trigger character (e.g. a note named
@Amato) inserted the correct link, but the plugin then mistook the@inside its own[[@Amato]]for the start of a brand new mention, reopening the suggester and corrupting anything typed afterward. Fixed by recognizing a trigger character already followed by a closed]]link. - Picking a template in the promotion picker could silently produce an empty note (no frontmatter, no template content) due to a timing issue in the picker's modal lifecycle.
- Promoting with a template that has no
{{content}}placeholder no longer discards whatever you'd written under the mention heading — it's now appended at the end of the note instead of lost.
Added
- The mention suggester now matches a note's frontmatter aliases (
alias/aliases), not just its filename. Picking an alias inserts[[Note|Alias]].
Documentation
- Corrected the Templater note: Templater syntax in a template does get processed on promotion, as long as Templater's own "Trigger Templater on new file creation" setting is enabled.
See CHANGELOG.md for full 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.