I know I can use something like #+INCLUDE: "./filepath"
but this has effect only when I export the file. I can also use link like [[./filepath]]
but I have to type C-c C-o
to go to the content.
How to automatically expand this include
or this link to the current file? It is useful to use C-s
(ISearch) and other practical things like edit the external content inline without change buffer or window.
Thank you.
EDIT: I know I can type C-x i
to insert a content of any file inside my current org file, but it isn't what I really want. I want a two-way direct link between my current org file and external files. If I modify the external file, my current org file is automatically updated. And vice-versa.
My current application is: I have a file called mapmind.org
where I have my map mind. I use the tool org-mind-map to export this into a beautiful diagram. Unfortunately this tool doesn't allow to export only a region, so this should be in a single separated file. And I have my main org file, called main.org
. I have several items and one of them is:
* Map mind
See [[./mapmind.org]].
#+INCLUDE mapmind.org
When I export the entire file into a PDF, for example, I can see my mapmind there. If I put the cursor above the link, I can navigate using C-c C-o
, or I can go to file using C-c '
above include line as John Kitchin said as commentary. But this is very unpractical because search commands like C-s
, C-r
and so on does't find anything in mapmind.org
file. Also, I'd like to see and edit the content directly in my main org file without the need to navigate elsewhere.
This feature could be useful for many other applications.