X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=blobdiff_plain;f=org-ref.org;h=2f148c5bc65da262fc83d20d22a7305ae137a484;hp=59fc131c8a1f87f448e17533f848535f2de38071;hb=3eb48fce1fba4f315e502b9fbc7be7c845da9615;hpb=ab07368ecf45494687b0492ddf19a522d4376d5a diff --git a/org-ref.org b/org-ref.org index 59fc131..2f148c5 100644 --- a/org-ref.org +++ b/org-ref.org @@ -1761,6 +1761,25 @@ key author journal year volume pages doi url key org-ref-pdf-directory key)) (save-buffer)))) #+END_SRC +#+BEGIN_SRC emacs-lisp :tangle org-ref.el +(defun org-ref-open-notes-from-reftex () + "Call reftex, and open notes for selected entry." + (interactive) + (let ((bibtex-key ))) + + ;; now look for entry in the notes file + (if org-ref-bibliography-notes + (find-file-other-window org-ref-bibliography-notes) + (error "org-ref-bib-bibliography-notes is not set to anything")) + + (goto-char (point-min)) + + (re-search-forward (format + ":Custom_ID: %s$" + (first (reftex-citation t)) nil 'end)) + (funcall org-ref-open-notes-function)) +#+END_SRC + ** open url in browser from bibtex We bind this to a key here [[*key%20bindings%20for%20utilities][key bindings for utilities]]. @@ -2237,6 +2256,7 @@ I like convenience. Here are some aliases for faster typing. (defalias 'orp 'org-ref-open-pdf-at-point) (defalias 'oru 'org-ref-open-url-at-point) (defalias 'orn 'org-ref-open-notes-at-point) +(defalias 'ornr 'org-ref-open-notes-from-reftex) (defalias 'orib 'org-ref-insert-bibliography-link) (defalias 'oric 'org-ref-insert-cite-link)