Closed zhscn closed 2 years ago
Hi, indexing notes into the database is the task of Org-roam. Org-roam-bibtex doesn't handle it and there is nothing I can do here. I can confirm this issue, which hasn't used to be the case until recently. This bug has been reported on the org-roam issue tracker. Please follow the issue there.
Thanks for the helpful information, temporarily downgrade org-roam to v2.1.0 it works well.
I create a new note from a empty roam directory and then roam show a reference link of itself.
Is there a method to hide this link?
my configuration:
```emacs lisp (straight-use-package '(org :type git :host github :repo "bzg/org-mode")) (straight-use-package 'ivy-bibtex) (straight-use-package 'org-ref) (straight-use-package 'org-roam) (straight-use-package 'org-roam-bibtex) (straight-use-package 'org-tree-slide) (straight-use-package 'darkroom) (setq org-directory (file-truename "~/org/")) ;;; ivy-bibtex (setq ivy-re-builders-alist '((ivy-bibtex . ivy--regex-ignore-order) (t . ivy--regex-plus))) (setq bibtex-completion-bibliography `(,(concat org-directory "bibliography/ref.bib"))) (setq bibtex-completion-library-path `(,(concat org-directory "pdf"))) (setq bibtex-completion-pdf-field "File") (setq bibtex-completion-notes-path (concat org-directory "notes")) ;;; org-ref (setq org-ref-completion-library 'org-ref-ivy-cite) (setq reftex-default-bibliography bibtex-completion-bibliography) (setq org-ref-default-bibliography bibtex-completion-bibliography) (setq org-ref-pdf-directory (file-truename "~/Zotero/storage")) (setq org-ref-bibliography-notes (concat org-directory "note.org")) (defun +org-ref-ivy-insert-cite-link (&optional arg) "insert cite link with help of `ivy-bibtext' and corresponding `ivy-bibtex-display-transformer'" (interactive "P") (setq org-ref-bibtex-files (if arg org-ref-default-bibliography (org-ref-find-bibliography))) (bibtex-completion-init) (let* ((candidates (bibtex-completion-candidates)) (key (bibtex-completion-key-at-point)) (preselect (and key (cl-position-if (lambda (cand) (member (cons "=key=" key) (cdr cand))) candidates)))) (ivy-read "Open: " candidates :preselect preselect :caller 'ivy-bibtex :history 'ivy-bibtex-history :action 'or-ivy-bibtex-insert-cite))) ;;; org-roam (setq org-roam-v2-ack t) (setq org-roam-directory (concat org-directory "roam")) ;;; org-roam-bibtex (with-eval-after-load "org-roam" (require 'ivy-bibtex) (require 'org-ref) (setq org-ref-insert-cite-function #'+org-ref-ivy-insert-cite-link) (org-roam-setup) (org-roam-bibtex-mode +1)) (provide 'init-org) ```