Clarify use of links to directories

Fix #138
This commit is contained in:
EinfachToll 2015-05-13 11:10:25 +02:00
parent 6846459255
commit f7725fb506

View File

@ -760,7 +760,8 @@ 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 the file /path/to/your/wiki/index.wiki, no matter in which subdirectory you
are currently in. are currently in.
Links to directories (ending with a "/") are also supported: > Links to subdirectories inside the wiki directory are also supported. They
end with a "/": >
[[a subdirectory/|Other files]] [[a subdirectory/|Other files]]
Use |g:vimwiki_dir_link| to control the behavior when opening directories. Use |g:vimwiki_dir_link| to control the behavior when opening directories.
@ -1154,6 +1155,7 @@ using absolute or relative paths with extension: >
[[file:~/a/b/c/music.mp3]] [[file:~/a/b/c/music.mp3]]
[[file:../assets/data.csv|data (CSV)]] [[file:../assets/data.csv|data (CSV)]]
[[local:C:/Users/somebody/d/e/f/music.mp3]] [[local:C:/Users/somebody/d/e/f/music.mp3]]
[[file:/home/user/documents/|Link to a directory]]
In Vim, "file:" and "local:" behave the same, i.e. you can use them with both In Vim, "file:" and "local:" behave the same, i.e. you can use them with both
relative and absolute links. When converted to HTML, however, "file:" links relative and absolute links. When converted to HTML, however, "file:" links