org-roam-ui
org-roam-ui copied to clipboard
How to locate a specific node searching on titles?
I opened this issue in the org-roam-server (https://github.com/org-roam/org-roam-server/issues/114) about how to locate specific nodes in the graph.
One of the workarounds was to establish a fixed random seed in the graph to always see the very same graph every time we refresh the browser.
I don't know if any of those solutions is possible. I just put it here to start a discussion.
Best.
It's not the best solution, but if you have org-roam-ui setup to follow you in emacs (with the following in your config)
(setq org-roam-ui-follow t)
The graph will zoom into the node you are looking at in emacs. Sometimes I've had to jump to a different note and back a few times, but this is how I have been finding nodes in the graph lol.
I do think something in the ui itself would be nice, I'd assume the type-ahead search wouldn't end up customizable as it is in emacs tho.
I opened this issue in the org-roam-server (org-roam/org-roam-server#114) about how to locate specific nodes in the graph.
One of the workarounds was to establish a fixed random seed in the graph to always see the very same graph every time we refresh the browser.
I don't know if any of those solutions is possible. I just put it here to start a discussion.
Best.
As @blester125 says, this is the best solution atm, but we plan to add something like a node search at some point. Otherwise, in my experience the graph layout is completely deterministic, and the nodes always fall in the same place given that no new nodes/links have been added. This is no great solution, and we plan to be able to "save" the graph layout after settling, so upon reload it does not explode but just shows you your previous graph. This would also allow us to make adding new nodes less dramatic on save (although that could probably be handled anyway with some rewriting)
Thank you @blester125 and @ThomasFKJorna for the reply.
Yes, I haven't considered that org-roam-ui-follow could serve as a locator in the graph while we jump across node in org-roam. I will exploit more this feature.
My only concern was if the graph was completely random at start (org-roam-server was it), but given the answer of Thomas, I think that it's enough to close the issue.
Thanks again.
I was thinking making a dropdown with all the nodes as options (alphabetically), So you can choose from there and it'll be previewed and highlighted instead of having to manually search things with your eyes or through a text search might be good enough. Would it be too hard to implement?
You can possibly just use the functionality of follow-emacs to just focus on the node selected in the dropdown, and then also keep that dropdown updated when you click on the nodes in the graph or in emacs.