You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not super great at elisp so I'm unsure of how to go about this, but what I'd like is to run a function and have the minibuffer allow me to select a citation, then open an org-roam note, and the references pdf side-by-side.
Here's what I have so far:
(defun kb/citar-open-note-and-pdf (citekey)
"Open the note and PDF side-by-side for the given CITEKEY"
(interactive (list (citar-select-refs :multiple nil)))
(delete-other-windows)
(citar-open-note citekey)
(split-window-right)
(other-window 1)
(citar-open-files citekey)
(other-window 1))
But this obviously wont work as citar-open-* doesn't work for non-existent notes.
As a tasty bonus, I'd like it to have similar behaviour to org-agenda-window-setup 'only-window where when I close a buffer, the buffer/window arrangement returns to how it was beforehand.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey guys,
I'm not super great at elisp so I'm unsure of how to go about this, but what I'd like is to run a function and have the minibuffer allow me to select a citation, then open an org-roam note, and the references pdf side-by-side.
Here's what I have so far:
But this obviously wont work as
citar-open-*
doesn't work for non-existent notes.As a tasty bonus, I'd like it to have similar behaviour to
org-agenda-window-setup 'only-window
where when I close a buffer, the buffer/window arrangement returns to how it was beforehand.Thanks very much!!
Beta Was this translation helpful? Give feedback.
All reactions