org-roam-server
org-roam-server copied to clipboard
How to locate a specific node searching on titles?
Hi!
How do I could search/locate a node in the graph based only on the title? Sometimes I want to look a path of notes starting by some specific one. However, given that the layout of the graph is random each time that I start the server, I have to search manually where is the node that I looking for.
Also if the graph is dense, sometimes it could be difficult to differentiate the titles in nodes.
I think that having some search box where the nodes are filtered according to some random text could improve a lot how the user interacts with the graph.
Thanks.
given that the layout of the graph is random each time that I start the server
Also if the graph is dense, sometimes it could be difficult to differentiate the titles in nodes.
I'm still reading the docs and tweaking, but it seems you can define a random seed to make it look the same every time you launch it and there are aesthetics options for font size and elements width and height, so it would be possible to make it more readable.
Then you can config it using something like:
(use-package org-roam-server
:ensure t
:config
(setq org-roam-server-host "127.0.0.1"
org-roam-server-port 8080
org-roam-server-export-inline-images t
org-roam-server-authenticate nil
org-roam-server-network-poll nil
org-roam-server-network-arrows nil
;; From here: https://visjs.github.io/vis-network/docs/network/
org-roam-server-network-vis-options "{ \"layout\": {\"randomSeed\": 42}, \"physics\": {\"barnesHut\": {\"avoidOverlap\": 1, \"gravitationalConstant\": -4000}, \"timestep\": 0.2}}"
org-roam-server-network-label-truncate t
org-roam-server-network-label-truncate-length 60
org-roam-server-network-label-wrap-length 20))
I still need to play around with it, but I'm currently facing this challenge of a very complex graph that is losing its value of helping me to connect ideas.
I found this issue while googling to find a solution to this problem. I too would find it super handy if there was some basic search functionality. In decreasing order of importance for me:
- Search based on title.
- Search based on content.
- Highlight node for active buffer(s) in graph.
I add a new select box component, which can search node by title and then move the network and let it in the center of the screen,but not ready for a pr,still working on some other things.
@codepiano Super cool! Does it work for V2?
@codepiano Super cool! Does it work for V2?
You mean org-roam v2? Not sure, still using v1
Ok. Thanks. I hope in the future this feature could be translated to V2.
FYI. Jethro created a repo to pinpoint V1 in their current state.
org-roam V2
will be merged soonish and will deprecate V1
completely.
I'm looking forward to seeing this feature on the server soon.
https://github.com/org-roam/org-roam-v1