Obsidian-Map-of-Content icon indicating copy to clipboard operation
Obsidian-Map-of-Content copied to clipboard

Add in option to bidirectionally link notes (for Obsidian Publish)

Open gwillcox-r7 opened this issue 4 years ago • 6 comments

Another option that might be nice is to add in the option to bidirectionally link notes as this might prove useful for websites where users might not have access to these plugins and would want to be able to navigate up/down one level more easily. Considering we are mapping the relationships out already and I see we label the links differently if they are bidirectional vs unidirectional, I'm hoping this shouldn't require too much additional development effort.

gwillcox-r7 avatar Oct 11 '21 17:10 gwillcox-r7

Do you mean to include the links in the .md file?

Robin-Haupt-1 avatar Oct 11 '21 18:10 Robin-Haupt-1

Do you mean to include the links in the .md file?

Yes, so essentially you could click a button and it would add in a footer or header with links back to the previous level or to the next level down. So perhaps header could have a few links to previous levels and footer could have links to the next level down in the tree, that way you turn the note from being unidirectional (since usually the links will only go in order from higher level to lower level notes, with no way to use a link to return to the level above), into a bidirectional note (all notes have links both to subtopics, as well as to direct parent topics).

The button would just allow users to optionally automate this processes on a per note basis.

gwillcox-r7 avatar Oct 11 '21 18:10 gwillcox-r7

Hmm. I'll have to think about that. Would you personally want to use this in a context like Obsidian publish?

Robin-Haupt-1 avatar Oct 11 '21 18:10 Robin-Haupt-1

Hmm. I'll have to think about that. Would you personally want to use this in a context like Obsidian publish?

Yes I'd want that with Obsidian Publish so that people can navigate around easier if they don't want to use the graph view and also to make navigation of notes easier.

I agree its not entirely within the realm of this plugin so its kind of an out there idea. It may make more sense as a separate plugin but I thought I'd throw it out there as a potential idea.

gwillcox-r7 avatar Oct 11 '21 19:10 gwillcox-r7

It would lose all the flexibility of regerating the MOC on demand. Also, couldn't you use the native backlinks to navigate in the directing opposite of the links?

I do plan to allow saving the MOC / a part of it to a file though. Maybe that could work? Then you could just have the complete MOC at the end of the file, for example.

The question of Obsidian Publish integration is a whole field of possibilites though that i haven't even thought about yet. I'd love it if there was a way to get the same experience of my plugin there as you can get in the app.

Robin-Haupt-1 avatar Oct 11 '21 19:10 Robin-Haupt-1

Not sure what you mean by you'd loose the flexibilty of generating the MOC on demand. All you would be doing is adding in links that don't already exist, thus your plugin would go from showing the link as a one directional link to showing it as bidirectional. There would be no real change to regenerating the MOC on demand minus this.

As for native backlinks, your assuming those already exist; my point is if they don't exist in the raw MD file, provide the option of generating those.

If your talking about the plugin, well yes it would work up to a point, I imagine #52 would allow for forming a fuller picture but you could also get around using your plugin. I'm just thinking of cases where your plugin might not be available such as if I publish the notes online or if I give my notes to a friend who doesn't have your plugin installed or can't install it for some reason (company policies, security concerns, etc).

gwillcox-r7 avatar Oct 11 '21 19:10 gwillcox-r7