Prettify: Special case in diary not so special
Same as generic case within this PR
This commit is contained in:
parent
c73107dc10
commit
1020ac51bf
@ -2180,11 +2180,6 @@ function! vimwiki#base#normalize_link_in_diary(lnk) abort
|
||||
let rxUrl = vimwiki#vars#get_global('rxWord')
|
||||
let rxDesc = '\d\d\d\d-\d\d-\d\d'
|
||||
let template = vimwiki#vars#get_global('WikiLinkTemplate1')
|
||||
elseif link_exists_in_diary
|
||||
let str = a:lnk
|
||||
let rxUrl = '.*'
|
||||
let rxDesc = ''
|
||||
let template = vimwiki#vars#get_global('WikiLinkTemplate1')
|
||||
elseif link_exists_in_wiki
|
||||
let depth = len(split(vimwiki#vars#get_wikilocal('diary_rel_path'), '/'))
|
||||
let str = repeat('../', depth) . a:lnk
|
||||
|
Loading…
Reference in New Issue
Block a user