weirdNox / org-noter

Emacs document annotator, using Org-mode
GNU General Public License v3.0
1.07k 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 7 months ago

krisbalintona commented 8 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.