tmalsburg/helm-bibtex

Setting `ivy-bibtex-default-action` to `bibtex-completion-edit-notes` doesn't work

Closed this issue · 2 comments

Reproduction

My config looks something like this:

(use-package ivy-bibtex
  :ensure t
  :after org-ref
  :bind ("C-c n b" . ivy-bibtex)
  :config
  (setq
   ;; more config..
   bibtex-completion-pdf-field "file"
   ivy-bibtex-default-action 'bibtex-completion-edit-notes))
  1. call ivy-bibtex
    screenshot_99
  2. <return> or <C-j>

Expected

Creates new note or shows existing note file.

Actual

Fails with the following warning:

Warning (:warning): Bibtex-completion couldn't find entry with key "2017 How to Take Smart Notes Sönkre Ahrens book Ahrens2017a".

Editing the note by keying M-o -> e (edit notes via ivy context menu) works without problems.

Assumption

It seems that the key that gets passed to bibtex-completion-edit-notes is wrong.
"2017 How to Take Smart Notes Sönkre Ahrens book Ahrens2017a instead of Ahrens2017a?

Instead of bibtex-completion-edit-notes please try ivy-bibtex-edit-notes.

Oh, that was easy. Thanks you!