rudolfochrist / interleave

Emacs minor mode to interleave notes and text books

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multi-pdf notes but in at any headline level

DJJ88 opened this issue · comments

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

Hi @DJJ88 ,

I'm glad you like the project and thank you for reporting this. It seems you found a bug. I'm currently a little short on time, so it will take a while until this is fixed.

If you'd like to dabble into Elisp programming more, feel free to hack on it yourself and send in a PR. I will happily merge it.

Till then,
Sebastian