mdelobelle / obsidian_supercharged_links

obsidian plugin to add attributes and context menu options to internal links
MIT License
521 stars 34 forks source link

Styling for Bookmarks pane can't handle aliases nor block links #194

Open OptionalM opened 1 year ago

OptionalM commented 1 year ago

Support for the bookmarks pane uses a completely wrong approach.

It looks at the content of the HTML-notes, the displayed text. But that text is actually completely arbitrary, as users can alias their bookmarks. E.g. naming the bookmark that points to Note 1.md "Note 2" or literally anything else:

image

It currently "works", because most people do not choose aliases for their bookmarks and seldom have name collisions (/folder 1/Note.md and /folder 2/Note.md).

The DOM does not contain any information on where the bookmarks are pointing and thus to solve this issue there needs to be a completely different approach to identify the links and add required metadata to the DOM.

Example, the bookmark is for a note called Note 1.md, the alias is Fake Note. The DOM does not contain information on the path: image