rudolfochrist / interleave

Emacs minor mode to interleave notes and text books

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open/create .org notes file when launching interleave from a pdf [Feature/TODO?]

kaushalmodi opened this issue · comments

Hi,

I have this idea:

  • Set a defvar called interleave--notes-dir. The user should make a point to save the pdf associated notes org file either in the same folder or in the interleave--notes-dir.
  • When calling M-x interleave from a pdf file (let's say file-name.pdf), we will search for file-name.org first in the same folder and then in interleave--notes-dir. If the search is successful, that file is opened and the Interleave session will continue as now.
  • But if file-name.org is not found, then it is created in interleave--notes-dir with the header #+INTERLEAVE_PDF: /path/to/file-name.pdf. The user can choose to move it to the same folder as the pdf is they wish (or we can add a defvar for an option to create the notes org in either the same folder or in interleave--notes-dir by default). I personally like the idea of keeping all notes in one folder. And then the Interleave session will continue as now.

What do you think? I will get started on adding this feature when I get a chance.

Sounds good. That doesn't quite fit my own personal workflow, but go for it. If you come up with a PR, I'll merge it.