caiorss / org-wiki

Wiki for Emacs org-mode built on top of Emacs org-mode.
https://caiorss.github.io/org-wiki/
The Unlicense
359 stars 31 forks source link

Option to create new folder for every wiki page creation? #7

Closed hummuscience closed 7 years ago

hummuscience commented 7 years ago

Great package! I am using it to write a labbook (will write a blogpost about my setup eventually).

Do you think that there is a way to create a folder containing the .org file for every new wiki page? If I was to do this, where do I start to modify the code to do so?

Thanks in advance!

caiorss commented 7 years ago

Do you mean create the attachment/asset directory fo the wiki page. For instance for the file

Did this commit address your issue - https://github.com/caiorss/org-wiki/commit/9a719263275d29c68e41945802b3e339016fc5ff ?

If I was to do this, where do I start to modify the code to do so?

It is possible by modifying the function org-wiki/open-page that is invoked when you open a wiki:pagename hyperlink.