11
Learning to use Org-roam (sh.itjust.works)
submitted 1 year ago by beppi@sh.itjust.works to c/emacs@lemmy.ml

Hey guys, I think I get the basic idea, but I have a few questions..

  1. How do I just open up a note to check it out? I can see just opening the file regularly, but having each file start with a long sting of numbers leads me to think there's some nicer, easier way.

  2. How do I go about having multiple "networks" one for work and one for home, etc. Do I just use folders?

Thanks guys!

top 4 comments
sorted by: hot top controversial new old
[-] Beteigeuze@feddit.de 5 points 1 year ago
  1. You can use org-roam-node-find which (maybe depending on your default completion framework, I use doom emacs btw. so some things are preset) let you type substrings of the actual title of the node to find it.
  2. This is a bit complicated, because there is no built-in way for having distinct buckets in Org-roam. But you can set directory-local variables in .dir-locals.el to achieve this.

For example, put this inside the file /home/username/work/.dir-locals.el:

;; -*- mode: emacs-lisp; -*-

((nil . ((org-roam-directory . "/home/username/work")
         (org-roam-db-location . "/home/username/work/org-roam.db"))))

Whenever Emacs opens a file inside the work directory, it will load and apply any variables in this file. Therefore you first must open a file inside the folder to access this files; open a file outside the directory to access the default ones.

[-] beppi@sh.itjust.works 2 points 1 year ago

Thanks for the help! Would I be better off just having all work and other stuff together then? Or is it worth the hassle to use a work dir?

[-] ggg@lemy.lol 3 points 1 year ago

Check this out: https://codeberg.org/tekakutli/neuralnomicon

I came across this guy who came up with a way to share some of his org-roam notes, and the strategy he uses could apply to your work situation. He keeps everything in one org-roam database, but for the notes he's sharing with the general public:

  1. He stores them in a separate directory neuralnomicon/nodes.
  2. He tags them as neuralnomicon.
[-] cabhan@discuss.tchncs.de 4 points 1 year ago

Welcome to org-roam!

For opening a file, you can use M-x org-roam-node-find. You can then either create a new node or visit an existing one.

The manual has some info about having multiple directories. It's not super smooth, but it does work: https://www.orgroam.com/manual.html#How-do-I-have-more-than-one-Org_002droam-directory_003f

this post was submitted on 28 Jul 2023
11 points (100.0% liked)

Emacs

2190 readers
1 users here now

Our infinitely powerful editor.

founded 4 years ago
MODERATORS