-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use org-ids for linking wiki files #11
Comments
Do you mean using search options in file links? (defun org-wiki--open-page (pagename_section)
"Open or create new a org-wiki page (PAGENAME) by name.
Example: (org-wiki--open-page \"Linux\")
Will open the the wiki file Linux.org in
`org-wiki-location`"
(let* ((pagename (car (split-string pagename_section "::")))
(section (car (cdr (split-string pagename_section "::"))))
(org-wiki-file (org-wiki--page->file pagename))
)
(if (not (file-exists-p org-wiki-file))
;; Action executed if file doesn't exist.
(progn (find-file org-wiki-file)
;; Insert header at top of page
(org-wiki-header)
;; Save current page buffer
(save-buffer)
;; Create assets directory
(org-wiki--assets-make-dir pagename))
;; Action executed if file exists.
(if org-wiki-default-read-only
;; open file in read-only mode.
(progn (org-open-file org-wiki-file t nil section)
(read-only-mode 1))
;; open file in writable mode.
(org-open-file org-wiki-file t nil section))
))) this would allow links like
|
thank you very much for your answer. This is still an unsolved problem for me. I was thinking of External Links using IDs like I thought that offering to use IDs would require modifications at many different parts of org-wiki (for the index, etc.) so that I didn't even try to change a function to jump to a different wiki heading. |
At the moment I use org-ids for my links so that later I can freely adjust my headlines and file locations. I have about 1 million words among 250 files and everything works as expected.
I like the features of org-wiki and have tried it out for a while but I haven't found a way to use wiki-links with org-ids. Is that possible? Did I miss something obvious?
Thanks for this useful software.
PS: Do you know these essays about personal wikis in general http://connectedtext.com/manfred.php and http://luhmann.surge.sh/communicating-with-slip-boxes ? I thought they were quite interesting.
The text was updated successfully, but these errors were encountered: