Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

view pdf and edit notes side by side #416

Open
rhaynes74 opened this issue Nov 7, 2022 · 2 comments
Open

view pdf and edit notes side by side #416

rhaynes74 opened this issue Nov 7, 2022 · 2 comments

Comments

@rhaynes74
Copy link

Hi folks, is it possible to have helm-bibtex make available an option that would "edit notes" and "open pdf" side by side with helm-bibtex?

I know org-noter does something like this but I would like to stay within the helm-bibtex framework.

@tmalsburg
Copy link
Owner

Nice idea. First impression: this should be relatively simply by defining a new action that combines the two existing actions for notes and PDFs into one with some additional code that creates the necessary windows side by side. Look at the existing code and see whether you can adapt it.

@ecijalex
Copy link

ecijalex commented Nov 15, 2024

This will be indeed a nice feature,

In case it might be useful, the following works for me, although I'm afraid is not going to be very neat...

(defun bibtex-completion-open-pdf-and-notes (keys)
  "Open pdf and notes side by side."
  (bibtex-completion-edit-notes keys)
  (setq MYNAME (s-replace ")" "" (s-replace "(" "" (format "%s" keys))))
  (find-file-other-window (concat bibtex-completion-library-path MYNAME  ".pdf")))
(helm-bibtex-helmify-action bibtex-completion-open-pdf-and-notes helm-bibtex-open-pdf-and-notes)
(helm-add-action-to-source
 "Open pdf and notes side-by-side" 'helm-bibtex-open-pdf-and-notes
 helm-source-bibtex 13)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants