org-roam / org-roam-bibtex

Org Roam integration with bibliography management software
GNU General Public License v3.0
565 stars 47 forks source link

does ivy-bibtex abandoned? then how to add a node with out insert the link? #247

Closed wztdream closed 1 year ago

wztdream commented 1 year ago

Describe the bug See this discussion and this issue. It seems old interface to add node by ivy-bibtex or helm-bibtex are abandoned, correct me if I am wrong:). Now we have to use orb-insert-link to add a new node and insert it as a link to somewhere. But what if I only what to add a new node and did not what to insert it as a link to somewhere. So it seems to me keep ivy-bibtex interface is useful.

I am still confusing, run orb-insert-link then chose a new bib item, it will bring me to org-roam-capture, but I assume there should be an action selection step defined by orb-insert--ivy-actions. Is it correct behavior or there is still bug in my side?

(defvar orb-insert--ivy-actions
  '(("e" ivy-orb-insert-edit-note "Edit note & insert a link")
    ("p" ivy-bibtex-open-pdf "Open PDF file (if present)")
    ("u" ivy-bibtex-open-url-or-doi "Open URL or DOI in browser")
    ("c" ivy-bibtex-insert-citation "Insert citation")
    ("r" ivy-bibtex-insert-reference "Insert reference")
    ("k" ivy-bibtex-insert-key "Insert BibTeX key")
    ("b" ivy-bibtex-insert-bibtex "Insert BibTeX entry")
    ("a" ivy-bibtex-add-PDF-attachment "Attach PDF to email")
    ("s" ivy-bibtex-show-entry "Show entry")
    ("l" ivy-bibtex-add-pdf-to-library "Add PDF to library")
    ("f" (lambda (_candidate) (ivy-bibtex-fallback ivy-text)) "Fallback options"))
  "Ivy actions to use with `orb-insert'.
A copy of Ivy-bibtex's alist defining Ivy actions, in which
\"Edit note & insert a link\" is made first (default) action.
This action calls `orb-insert-edit-note'.  Only relevant when
`orb-insert-interface' is `ivy-bibtex'.")
wztdream commented 1 year ago

my mistake, for ivy I need press M-o to select other actions