czottmann / obsidian-mononote

An Obsidian plugin that ensures each note occupies only one tab. If a note is already open, its existing tab will be focussed instead of opening the same file in the current tab.
https://obsidian.md/plugins?id=zottmann
MIT License
96 stars 2 forks source link

[ZCO-226] Feature request: Support for anchor links #3

Closed awsharif closed 9 months ago

awsharif commented 1 year ago

Hi,

This plugin does a great job at what should be default behaviour, IMO. Thanks for the great work.

I have an issue where opening a block link to an already open file. In normal Obsidian behaviour this results in open file > direct navigation to relevant block (highlighted). With mononote, I think because the functionality involves closing the new instance in favour of the already open one, block links do not work as expected. I hope this makes sense.

ZCO-226

czottmann commented 1 year ago

Hi @awsharif, thanks for the report!

With mononote, I think because the functionality involves closing the new instance in favour of the already open one, block links do not work as expected.

Yes, that's exactly what it does. I never thought about including support for block links as I don't use them myself. I'll change your ticket here and make it a feature request so I won't forget taking a stab at it. (This might take a while, tho, as I'm currently in the middle of another project which has a higher priority.)


Note to self: Implement anchor links (see Internal links → Link to a heading in a note) — when done right, this will make block links work as well.

jiajiala commented 10 months ago

Wait for this function

czottmann commented 9 months ago

@awsharif @jiajiala I've just implemented a fix. It will be part of the upcoming v1.1, due soon!