VimwikiBacklinks finds only links to the current file
But doesn't take into account markdown style links Ref #25
This commit is contained in:
parent
8f6768d7e6
commit
b1362ac161
@ -581,10 +581,13 @@ endfunction "}}}
|
|||||||
|
|
||||||
" vimwiki#base#backlinks
|
" vimwiki#base#backlinks
|
||||||
function! vimwiki#base#backlinks() "{{{
|
function! vimwiki#base#backlinks() "{{{
|
||||||
execute 'lvimgrep "\%(^\|[[:blank:][:punct:]]\)'.
|
let filename = expand("%:t:r")
|
||||||
\ expand("%:t:r").
|
let rx_wikilink = vimwiki#base#apply_template(g:vimwiki_WikiLinkTemplate1,
|
||||||
\ '\([[:blank:][:punct:]]\|$\)\C" '.
|
\ '\zs'.filename.'\ze\%(#.*\)\?', '.*', '').
|
||||||
\ escape(VimwikiGet('path').'**/*'.VimwikiGet('ext'), ' ')
|
\ '\|'. vimwiki#base#apply_template(g:vimwiki_WikiLinkTemplate2,
|
||||||
|
\ '\zs'.filename.'\ze\%(#.*\)\?', '.*', '')
|
||||||
|
execute 'lvimgrep "\C'.rx_wikilink.'" '.
|
||||||
|
\ escape(VimwikiGet('path').'**/*'.VimwikiGet('ext'), ' ')
|
||||||
endfunction "}}}
|
endfunction "}}}
|
||||||
|
|
||||||
" vimwiki#base#get_links
|
" vimwiki#base#get_links
|
||||||
|
Loading…
Reference in New Issue
Block a user