Skip to content
This repository was archived by the owner on Apr 20, 2022. It is now read-only.
This repository was archived by the owner on Apr 20, 2022. It is now read-only.

Multi-pdf notes but in at any headline level  #44

Description

@DJJ88

Hello,

Thanks for this nice tool. I was wondering if it is possible to use interleave in a lower level headlines as well?
Instead of launching M-x interleave at the Top level headline

  • Notes for CS103
    :PROPERTIES:
    :INTERLEAVE_PDF: cs103.pdf
    :END:

I would like to do

**** Notes for CS103
:PROPERTIES:
:INTERLEAVE_PDF: cs103.pdf
:END:

I'm not very good at lisp programing but your code is very clear. I suspect that the issue is in the following function

(defun interleave--headline-pdf-path (buffer) "Return the INTERLEAVE_PDF property of the current headline in BUFFER." (with-current-buffer buffer (save-excursion (let ((headline (org-element-at-point))) (when (and (equal (org-element-type headline) 'headline) (org-entry-get nil interleave--pdf-prop)) (setq interleave-multi-pdf-notes-file t) (org-entry-get nil interleave--pdf-prop))))))

But I cannot figure out why it does not work in the sub headlines.

Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions