Skip to content

Latest commit

 

History

History
61 lines (47 loc) · 2.24 KB

20210213184252-org_roam.org

File metadata and controls

61 lines (47 loc) · 2.24 KB

Org-roam

Org-roam online manual See also Org-mode basics

V1

Settings

You can define these anywhere, but it makes sense to define them at the top along with the Org-mode Export Settings. See example in this file.

  • roam_alias is a title alias. Useful when finding files.
  • roam_tags is for categorization. Also useful when finding files.
  • roam_key is a reference. Shows notes with that reference as a link in the backlinks buffer.

Capture Templates

Example with two templates.

(setq org-roam-capture-templates
      '(("d" "default" plain #'org-roam-capture--get-point "%?" :file-name "%<%Y%m%d%H%M%S>-${slug}" :head "#+title: ${title}\n" :unnarrowed t)
        ("t" "test" plain #'org-roam-capture--get-point "%?" :file-name "%<%Y%m%d%H%M%S>-${slug}" :head "#+title: ${title}\n" :unnarrowed t)))

Linking Notes

  • org-roam-insert

One cool trick is to link to a heading in a note. After the filename add ::*Header Name.

[[file:note.org::*My heading][Note - My Heading]]

V2

File links

  • Now uses an ID property.
  • A map of IDs to file paths is stored in .org-id-locations file, the location of which is determined by the variable org-id-locations-file

Creating and ID manually