Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to locate a specific node searching on titles? #114

Open
maikol-solis opened this issue Nov 17, 2020 · 7 comments
Open

How to locate a specific node searching on titles? #114

maikol-solis opened this issue Nov 17, 2020 · 7 comments

Comments

@maikol-solis
Copy link

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 maikol-solis changed the title How to locate a specific node in the graph based on titles? How to locate a specific node searching on titles? Nov 17, 2020
@lgmoneda
Copy link

lgmoneda commented Dec 4, 2020

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.

@egrefen
Copy link

egrefen commented May 13, 2021

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.

@codepiano
Copy link
Contributor

codepiano commented Jul 11, 2021

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

@maikol-solis
Copy link
Author

@codepiano Super cool! Does it work for V2?

@codepiano
Copy link
Contributor

@codepiano Super cool! Does it work for V2?

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

@maikol-solis
Copy link
Author

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

@maikol-solis
Copy link
Author

maikol-solis commented Jul 12, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants