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
calledinterleave--notes-dir
. The user should make a point to save the pdf associated notes org file either in the same folder or in theinterleave--notes-dir
. - When calling
M-x interleave
from a pdf file (let's sayfile-name.pdf
), we will search forfile-name.org
first in the same folder and then ininterleave--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 ininterleave--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 adefvar
for an option to create the notes org in either the same folder or ininterleave--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.
whoops