weirdNox / org-noter

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

Consider `org-noter-separate-notes-from-heading` and `org-noter-max-short-selected-text-length` in `org-noter-pdftools-create-skeleton` #182

Closed krisbalintona closed 10 months ago

krisbalintona commented 10 months ago

This pull request modifies the inserted text from org-noter-pdftools-create-skeleton such that the values of org-noter-separate-notes-from-heading and org-noter-max-short-selected-text-length are taken into account.

In particular, if org-noter-separate-notes-from-heading is non-nil, then a newline separates the inserted headline contents from their headlines, and if the inserted annotated text (not the comment, but the text annotated in the PDF) is more than org-noter-max-short-selected-text-length, then that text is put into an org quote block.