bdarcus/oxr

Add support for include files

Closed this issue · 3 comments

Hi,
thanks, I will try it... about the multi-document.
Yes, e.g. I have a main dockument and the chapters in a subfolder
image
image
And within the text directory one could have something like:
image
So, no I would not say that all open org files is the best approach (usually I have plenty of org files open, which are not relevant for the document).

There could be a few other options:

  1. one needs to define a main-org-file (which would be the one with the includes above), but I am not sure if the includes are recognized.
  2. The kind of (recursive) grepping takes place in all org-files in the current directory of the current file (this would work with the setup above).
  3. one defines a directory where the kind of grepping taks place

Thank you very much!

Originally posted by @fab6 in #3 (comment)

Seems, @fab6, the best approach would just be to open the include files in temp buffers, and parse their targets?

fab6 commented

not exactly sure, what a temp buffer is, but this is a certain minor mode and one would parse all of these, then it sounds quite practical