Ebonsignori / obsidian-at-symbol-linking

Adds ability to link with @ in Obsidian. Can limit @ linking to specific folders e.g. People/
MIT License
60 stars 9 forks source link

[Bug] Links don't account for Obsidian's "New Link Format" native setting #20

Open pierrefevrier opened 11 months ago

pierrefevrier commented 11 months ago

Hi, Thanks for this plugin.

Would it be possible to customize how the link is displayed or at least reproduce the behavior of the standard Obsidian link feature.

Current behavior :

Expected behavior :

Ebonsignori commented 11 months ago

Current behavior :

  • [[CONTACTS/Folder 1/ Folder 2/Chuck NORRIS]]

By default only Chuck NORRIS should be displayed here in the most recent version of this plugin, unless you have other file names that are CHUCK NORRIS in other folders. Same way Obsidian links (we use the Obsidian API to generate the links)

If you want the link text to say Chuck you can set aliases in the frontmatter to Chuck and when @-linking you can select the alias from the dropdown and it should display the alias as the link text, e.g. [[CONTACTS/Folder 1/ Folder 2/Chuck NORRIS|Chuckl]]

pierrefevrier commented 9 months ago

Thanks for your answer @Ebonsignori and sorry for taking so long to respond. Here is a video to see the behavior on a fresh new Obsidian Vault, with the last version of the plugin : Enregistrement de l’écran 2024-01-05 à 13 40 11

The expected behavior is that of the last link.