weirdNox / org-noter

Emacs document annotator, using Org-mode
GNU General Public License v3.0
1.07k stars 101 forks source link

Open directly from dired #168

Closed petermao closed 1 year ago

petermao commented 2 years ago

It would be nice for org-noter to be able to open a pdf+notes file directly from dired, but it looks like org-noter has to be called from a PDF or from the Org file containing the notes. This would require that org-noter (or perhaps a new function) takes a PDF or valid Org file as an argument.

Some relevant dired functions are dired-get-filename and possibly dired-get-marked-files (if one wants to open several org-noter sessions at once).

petermao commented 1 year ago
(define-key dired-mode-map (kbd "M-s n")  #'(lambda () (interactive)
                                              (dired-find-file)
                                              (org-noter)))