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

Add option for multiple org-roam templates #58

Open
bdarcus opened this issue Dec 26, 2024 · 1 comment
Open

Add option for multiple org-roam templates #58

bdarcus opened this issue Dec 26, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@bdarcus
Copy link
Contributor

bdarcus commented Dec 26, 2024

We currently only allow a single org-roam template, configured with citar-org-roam-capture-template-key.

Notwithstanding my broader concern about org-roam's future, it might be nice to make this more flexible, including allowing selection among multiple templates in completing-read.

@bdarcus bdarcus added the enhancement New feature or request label Dec 26, 2024
@rezaamashi
Copy link

To add into this I personally have my org-roam-capture-template to different templates for different roam notes type. Here is how I set it up.

    (setq org-roam-capture-templates
            `(("d" "[per|id] Default - Permanent/Index Notes" plain
               (file ,(concat doom-private-dir "orgtemplates/roamDefault.org"))
               :if-new
               (file+head "perNotes/%<%Y%m%d%H%M%S>-${slug}.org"
                          "#+TITLE: ${title}\n")
               :unnarrowed t)
              ("l" "[lit] Literature Notes" plain
               (file ,(concat doom-private-dir "orgtemplates/roamLit.org"))
               :if-new
               (file+head "litNotes/%<%Y%m%d%H%M%S>-${slug}.org"
                          "#+TITLE: ${title}\n")
               :unnarrowed t)
              ("m" "[lit] Podcast/Video Notes" plain
               (file ,(concat doom-private-dir "orgtemplates/mediaRef.org"))
               :if-new
               (file+head "litNotes/media/%<%Y%m%d%H%M%S>-${slug}.org"
                          "#+TITLE: ${title}\n")
               :unnarrowed t)
              ("c" "[lit] Course Notes" plain
               (file ,(concat doom-private-dir "orgtemplates/course.org"))
               :if-new
               (file+head "litNotes/course/%<%Y%m%d%H%M%S>-${slug}.org"
                          "#+TITLE: ${title}\n")
               :unnarrowed t)
              ("b" "[ref] Book References" plain
               (file ,(concat doom-private-dir "orgtemplates/bookRef.org"))
               :if-new
               (file+head "refNotes/noter/${citekey}.org"
                          "#+TITLE: ${title}\n")
               :unnarrowed t)
              ("a" "[ref] Article References" plain
               (file ,(concat doom-private-dir "orgtemplates/articRef.org"))
               :if-new
               (file+head "refNotes/noter/${citekey}.org"
                          "#+TITLE: ${title}\n")
               :unnarrowed t)
              ("p" "[pep] People's Contact" plain
               (file ,(concat doom-private-dir "orgtemplates/roamPeople.org"))
               :if-new
               (file+head "contacts/%<%Y%m%d%H%M%S>-${slug}.org"
                          "#+TITLE: ${title}\n")
               :unnarrowed t))))

Even until today, I use org-ref to new notes creation. The way how org-ref handles it is by sending the user into org-roam-capture-templates selection page directly which allows me to pick which template that I want to use. Especially since I need to differentiate articles (coming from Zotero bibtex) and books (coming from Calibre bibtex) for my roam notes.

I am not sure how is your plan to implement this. But this has been one feature that keeps me from using citar-org-roam integration fully. I have it installed on my config just to navigate to the created notes but not for creating new notes.

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

No branches or pull requests

2 participants