Skip to content

Instantly share code, notes, and snippets.

@ryseto
Last active December 31, 2015 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryseto/7955308 to your computer and use it in GitHub Desktop.
Save ryseto/7955308 to your computer and use it in GitHub Desktop.
Open the bibitem in BibDesk.app
(defun MyTeX-open-item-BibDesk ()
"Open the bibitem in BibDesk.app"
(interactive)
(let* ((s (save-excursion
(skip-chars-backward "^{,")
(point)))
(e (save-excursion
(skip-chars-forward "^},")
(point))))
(browse-url (concat "x-bdsk://" (buffer-substring-no-properties s e)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment