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

Support links pointing to sections in a pinned note

Open FitzFrobozz opened this issue 1 year ago • 1 comments

Currently, when mononote is enabled and a link pointing to a section within a pinned note is clicked, mononote prevents the note from opening in a new tab, but the user is not taken to the link destination. This is the case both when the link in question is in the pinned note (e.g. in a table of contents) and when the link is in another note (e.g. a note dragged to the sidebar). It would be wonderful if this could be changed so that the link is followed to the relevant section of the note.

FitzFrobozz avatar Feb 02 '24 02:02 FitzFrobozz

@FitzFrobozz I'll take a look the next time I work on Mononote!

Some expectation management: Mononote is currently not my highest priority, tho, so that might take a few weeks. I will look into it, just not right away.

czottmann avatar Feb 07 '24 14:02 czottmann

Implemented in Release 1.2.1.

The cursor is now set correctly in the file Mononote switched to, and while copying the entire ephemeral state (scroll position, cursor positions) works, that highlighting flash of the selected section doesn't always work. It's something Obsidian does on its own under the hood, but AFAICT there's no function to make it do that.

czottmann avatar Jun 20 '24 15:06 czottmann