Make tag links relative to current file #794 (#1162)

Also add a vader test case and update the changelog as well as the list
of contributors.

Co-authored-by: Tinmarino <tinmarino@gmail.com>
This commit is contained in:
Philipp Oberdiek
2021-12-18 16:11:01 +01:00
committed by GitHub
parent ee31d45553
commit c19e63b1e9
3 changed files with 78 additions and 0 deletions
+2
View File
@@ -345,6 +345,7 @@ function! vimwiki#tags#generate_tags(create, ...) abort
let lines = []
let bullet = repeat(' ', vimwiki#lst#get_list_margin()).vimwiki#lst#default_symbol().' '
let current_dir = vimwiki#base#current_subdir()
for tagname in sort(keys(tags_entries))
if need_all_tags || index(self.specific_tags, tagname) != -1
if len(lines) > 0
@@ -361,6 +362,7 @@ function! vimwiki#tags#generate_tags(create, ...) abort
endif
for taglink in sort(tags_entries[tagname])
let taglink = vimwiki#path#relpath(current_dir, taglink)
if vimwiki#vars#get_wikilocal('syntax') ==# 'markdown'
let link_tpl = vimwiki#vars#get_syntaxlocal('Weblink3Template')
let link_infos = vimwiki#base#resolve_link(taglink)