Feature: Add handling of absolute path to vimwiki #811 from @justrajdeep

- update vimwiki link handling so that if using env variables it is resolved
- add [[//absolute_path]] to handle absolute path
- updated doc to reflect the changes
This commit is contained in:
Rajdeep
2020-01-26 20:39:03 -05:00
committed by Tinmarino
parent 8cf2789840
commit e3e841f335
3 changed files with 91 additions and 10 deletions

View File

@ -1009,16 +1009,24 @@ With description: >
Wiki files don't need to be in the root directory of your wiki, you can put
them in subdirectories as well: >
[[projects/Important Project 1]]
[[projects/Important Project 1]]
To jump from that file back to the index file, use this link: >
[[../index]]
[[../index]]
or: >
[[/index]]
[[/index]]
The latter works because wiki links starting with "/" are considered to be
absolute to the wiki root directory, that is, the link [[/index]] always opens
the file /path/to/your/wiki/index.wiki, no matter in which subdirectory you
are currently in.
If you want an absolute path in your local box you can prefix the path
with // >
[[//absolute_path]]
For example: >
[[///tmp/in_root_tmp]]
[[//~/in_home_dir]]
[[//$HOME/in_home_dir]]
Links to subdirectories inside the wiki directory are also supported. They
end with a "/": >
[[a subdirectory/|Other files]]
@ -3636,6 +3644,7 @@ http://code.google.com/p/vimwiki/issues/list. They may be accessible from
https://github.com/vimwiki-backup/vimwiki/issues.
New:~
* PR #811: Feature: Added handling of absolute path to vimwiki (with //)
* PR #919: Fix duplicate helptag
* PR #907: Cycle bullets
* PR #900: conceallevel is now setted locally for vimwiki buffers