org-roam-ui icon indicating copy to clipboard operation
org-roam-ui copied to clipboard

[MINOR] Include [[roam:Nodename]] link as placeholder node in graph

Open thriveth opened this issue 2 years ago • 4 comments

Have you checked whether this feature is not already on the project board?

Yes

Is your feature request related to a problem? Please describe.

One of the real killer features of Obsidian is the ability to just double-bracket a term in a note, and it will show up as an empty node in your graph, even without an actual note existing. This makes it very quick and easy to remind yourself to circle back and create a note about the topic later, or simply just create a placeholder node that structurally connects notes on your graph, without the connection point necessarily containing any text. They are shown in a different color so it is easy to see which notes are "real" and which are just placeholders, and there's a switch to quickly and easily toggle their visibility.

Describe the solution you'd like It would be really great if a [[roam:Note name]] type link would be represented by a node in the graph, even if there isn't actually any note of that name. I see that it is possible with citations that do not actually contain a note, so I hope it might be possible for this kind of link as well.

Describe alternatives you've considered My current solution is to create an empty note with the tag :stub: and color by tag, but ut is kind of tedious, it is easy to forget the tag, and it clutters up my org-roam folder with empty files. The node-from-link solution would be much cleaner and more convenient.

Additional context N/A

thriveth avatar Jan 11 '22 09:01 thriveth

This should actually already work! (see the "non-existent" toggle in "Filter"). But only if you use "id" links I'm afraid. I could add the possibility of catching [[roam]] links, but that would probably break something else, and I sadly don't have the time to debug that at the moment.

"Fake" nodes automatically get assigned the "BAD" tag, so you could use the current tag coloring to show them.

This should be documented/implemented better, so I'll leave this feature request up until that is fixed!

tefkah avatar Jan 11 '22 09:01 tefkah

Also, if you use the [[id:somebadid]] thing, you can create notes from those "nodes" from the UI by right-clicking them and selecting: create node

tefkah avatar Jan 11 '22 09:01 tefkah

Oh, I see that! Only real problem is that creating a new note from such a link doesn't work from inside Emacs/org-roam, but I guess that is more of an org-roam issue.

thriveth avatar Jan 11 '22 10:01 thriveth

Jethro answered to my feature request at org-roam that they did not like overriding default org-mode behavior, so doing an automatic capture when following an id: link was not in the cards on their side of things. I still think a solution that allows one to use a link as a placeholder on the graph (like id: links) and also allows for quick capture with the same title when the link is followed (like roam: links) would remove a bit piece of friction. but only if it is practical, of course.

thriveth avatar Jan 19 '22 22:01 thriveth