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

citar-open-notes doesn't open org-roam-capture-template #675

Closed
LorenRiccie opened this issue Aug 9, 2022 · 5 comments
Closed

citar-open-notes doesn't open org-roam-capture-template #675

LorenRiccie opened this issue Aug 9, 2022 · 5 comments

Comments

@LorenRiccie
Copy link

LorenRiccie commented Aug 9, 2022

Describe the bug

citar-open-notes is not using org-roam capture templates as it does with helm-bibtex or ivy-bibtex.

Expected behavior
Currently citar-open-notes opens a note for bibliographic reference without prompting for org-roam capture templates, but instead using a template of its own starting with "Notes on [e.g] Adamson, Interpreting [...]"

configuration

(use-package org-roam
:ensure t
:init
(setq org-roam-v2-ack t)
:custom
(org-roam-directory "~/Dropbox/RoamNotes")
(org-roam-completion-everywhere t)
(org-roam-capture-templates
'(("d" "default" plain
"%?" ;; place of the cursor
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org"
"#+title: ${title}\n#+date: %U\n#+lastmod: Time-stamp: <>\n\n")
:unnarrowed t)
("r" "reference" plain
"%?"
:if-new
(file+head "references/${citekey}.org" "#+title: ${title}\n")
:immediate-finish t
:unnarrowed t)))
:bind
(("C-c n l" . org-roam-buffer-toggle)
("C-c n f" . org-roam-node-find)
("C-c n i" . org-roam-node-insert)
("C-c n t" . org-roam-tag-add)
("C-c n o" . org-id-get-create)
("C-M-i" . completion-at-point))
:config
(add-hook 'before-save-hook 'time-stamp)
(org-roam-db-autosync-mode))

(org-roam-bibtex-mode +1)

(use-package citar
:custom
(org-cite-global-bibliography '("/Dropbox/bibliography/references.bib"))
(org-cite-insert-processor 'citar)
(org-cite-follow-processor 'citar)
(org-cite-activate-processor 'citar)
(citar-bibliography org-cite-global-bibliography)
(citar-notes-paths '("/Dropbox/RoamNotes/references"))
(citar-library-paths '("/Dropbox/bibliography/bibliography_PDF"))
:bind
(:map org-mode-map :package org ("C-c b" . #'org-cite-insert)))

(setq citar-open-notes 'orb-citar-edit-note)

(use-package citar-embark
:after citar embark
:no-require
:config (citar-embark-mode))

Emacs version:
GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.6) of 2022-04-28

@LorenRiccie LorenRiccie added the bug Something isn't working label Aug 9, 2022
@bdarcus
Copy link
Contributor

bdarcus commented Aug 9, 2022

It's not a bug; we just changed the note API; you just need to change your config. See:

@bdarcus bdarcus closed this as completed Aug 9, 2022
@bdarcus bdarcus removed the bug Something isn't working label Aug 9, 2022
@myshevchuk
Copy link

Just for people coming here, see org-roam/org-roam-bibtex#253

@bdarcus
Copy link
Contributor

bdarcus commented Aug 11, 2022

Do you all think I should just submit citar-org-roam to MELPA now-ish?

@myshevchuk
Copy link

I personally don't have any problems when a package is not on MELPA because it's trivial to install it from GitHub, but people sort of expect a package on MELPA nowadays, and it adds a lot to the package's visibility.

@bdarcus
Copy link
Contributor

bdarcus commented Aug 11, 2022

Just submitted.

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

3 participants