obsidian-iconize icon indicating copy to clipboard operation
obsidian-iconize copied to clipboard

Multiple Icons are visible when the note is linked and aliased on another Note

Open mayeenulislam opened this issue 10 months ago โ€ข 4 comments

Describe the bug Multiple Icons are visible when the note is linked and aliased on another Note

To Reproduce Please note, I placed emojis here to show where the icons appear. In reality, I used the Font Awesome Solid icons for my notes.

There are two ways links work in Obsidian as I found so far:

ONE If you start typing [[ the notes will appear and if you choose the note from the dropdown, the link will be like below:

[[๐Ÿ’โ€โ™‚๏ธ../../Profile/Someone Awesome|๐Ÿ’โ€โ™‚๏ธSomeone Awesome]]

If you place out your cursor from the line the icons appear like below: ๐Ÿ’โ€โ™‚๏ธ๐Ÿ’โ€โ™‚๏ธSomeone Awesome

TWO If you drag & drop a note into another, that appears like the below: ๐Ÿ’โ€โ™‚๏ธ../../Someone Awesome In this case, the icon is visible once, but the path is visible. We can easily solve this by aliasing the link:

[[๐Ÿ’โ€โ™‚๏ธ../../Profile/Someone Awesome|Awesome]]

And that works, but if you try to type the title of the note, the icon appears double:

[[๐Ÿ’โ€โ™‚๏ธ../../Profile/Someone Awesome|๐Ÿ’โ€โ™‚๏ธSomeone Awesome]]

๐Ÿ’โ€โ™‚๏ธ๐Ÿ’โ€โ™‚๏ธSomeone Awesome

BTW If you have a single note in the vault, the default way of linking a note:

[[๐Ÿ’โ€โ™‚๏ธSomeone Awesome]]

works without trouble. But it breaks when there are two with the same name in different directory

Expected behavior For each file, the icon should be visible only once ๐Ÿ’โ€โ™‚๏ธSomeone Awesome

or there should be no icon in a link Someone Awesome

mayeenulislam avatar Apr 12 '24 04:04 mayeenulislam