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

How to locate a specific node searching on titles?

Open maikol-solis opened this issue 4 years ago • 7 comments

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.

maikol-solis avatar Nov 17 '20 20:11 maikol-solis

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.

lgmoneda avatar Dec 04 '20 11:12 lgmoneda

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:

  1. Search based on title.
  2. Search based on content.
  3. Highlight node for active buffer(s) in graph.

egrefen avatar May 13 '21 22:05 egrefen

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.

1

codepiano avatar Jul 11 '21 23:07 codepiano

@codepiano Super cool! Does it work for V2?

maikol-solis avatar Jul 12 '21 01:07 maikol-solis

@codepiano Super cool! Does it work for V2?

You mean org-roam v2? Not sure, still using v1

codepiano avatar Jul 12 '21 01:07 codepiano

Ok. Thanks. I hope in the future this feature could be translated to V2.

maikol-solis avatar Jul 12 '21 03:07 maikol-solis

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

maikol-solis avatar Jul 12 '21 11:07 maikol-solis