From: John Kitchin Date: Fri, 19 Dec 2014 20:16:26 +0000 (-0500) Subject: added summary citation back to menu. removed : from end. X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=commitdiff_plain;h=4a6d64c999a0155e3e1790b632bee580a476486a;hp=bcf167dce3c89a502132501e83b7b092303499ea added summary citation back to menu. removed : from end. --- diff --git a/org-ref.org b/org-ref.org index 28ea7d8..23c0250 100644 --- a/org-ref.org +++ b/org-ref.org @@ -1554,11 +1554,20 @@ Provides a menu of context sensitive actions. If the bibtex entry has a pdf, you ;; construct menu string as a message (message (concat + (let* ((results (org-ref-get-bibtex-key-and-file)) + (key (car results)) + (bibfile (cdr results))) + (save-excursion + (with-temp-buffer + (insert-file-contents bibfile) + (bibtex-search-entry key) + (org-ref-bib-citation)))) + "\n" (mapconcat (lambda (tup) (concat "[" (elt tup 0) "]" (elt tup 1) " ")) - org-ref-cite-menu-funcs "") ": ")) + org-ref-cite-menu-funcs ""))) ;; get the input (let* ((input (read-char-exclusive)) (choice (assoc @@ -1571,6 +1580,9 @@ Provides a menu of context sensitive actions. If the bibtex entry has a pdf, you 2)))))) #+END_SRC +#+RESULTS: +: org-ref-cite-onclick-minibuffer-menu + *** A function to format a cite link Next, we define a formatting function for the cite link. This is done so that the cite link definition is very short, and easy to change. You just need to specify the functions in the definition. This function is deprecated. The formatting is defined later automatically.