Feature request: Block linking
isle9 opened this issue · comments
I saw that header linking is already planned. Are there any plans for linking blocks as well?
This would make it so that you could completely replaced the default linking pattern with this plugin.
Yes. I hope to be able to add the two things at the same time.
It is simple enough to support inserting links to blocks that already have an id defined. So linking to a block like this:
Supporting the native link insertion functionality where all blocks in the note are shown and a block-id is generated when a specific block is selected will be more work. I'm not sure how to get all blocks in a specific note, so I will have to research this.
Is linking to blocks that already have a block id enough for your use case or would you need the extended functionality of the native link insertion?
It all depends on what you want to do with this plugin. I would personally love it if this plugin could completely replace the native link inserter because I prefer using one thing for one purpose.
I don't use block links that often tbh, but when I do, I do usually create new ones instead of linking to old ones.
Linking to existing block should be more than enough for the time being. If you have more time later, you can implement the future completely.
Thanks for your answer. I will do as you suggest. I have some ideas on achieving full block creation support, but I will start with the low-hanging fruit and just support linking to existing blocks.
A quick update: Even linking to existing blocks is not as easy as I thought. At least if I want it to look good. I will continue to look into this since it would be nice to have the same features as native Obsidian link suggestions.