Refractor: Path Add utility unixify #478
Basically unixify all before workingm then transofom in function os os Util: Add function sort_len that a list of string according to the lenght of its content Fix: VimwikiRenameLink doesn't update links in diary #90 Test: VimwikiRenameLink with nested directories Prettify comments in autoload/path + remove antipattern Define osxify function helper to solve windows Vs Unix : see #478 Path: remove useless temporary fix convertion before calling relpath (redundant) : see #478 Test: Fix typo Path corrected (Thanks to test)
This commit is contained in:
@ -572,10 +572,6 @@ function! vimwiki#base#get_wikilinks(wiki_nr, also_absolute_links, pattern) abor
|
||||
let result = []
|
||||
for wikifile in files
|
||||
let wikifile = fnamemodify(wikifile, ':r') " strip extension
|
||||
if vimwiki#u#is_windows()
|
||||
" TODO temporary fix see #478
|
||||
let wikifile = substitute(wikifile , '/', '\', 'g')
|
||||
endif
|
||||
let wikifile = vimwiki#path#relpath(cwd, wikifile)
|
||||
call add(result, wikifile)
|
||||
endfor
|
||||
@ -587,10 +583,6 @@ function! vimwiki#base#get_wikilinks(wiki_nr, also_absolute_links, pattern) abor
|
||||
let cwd = vimwiki#vars#get_wikilocal('path') . vimwiki#vars#get_wikilocal('diary_rel_path')
|
||||
endif
|
||||
let wikifile = fnamemodify(wikifile, ':r') " strip extension
|
||||
if vimwiki#u#is_windows()
|
||||
" TODO temporary fix see #478
|
||||
let wikifile = substitute(wikifile , '/', '\', 'g')
|
||||
endif
|
||||
let wikifile = '/'.vimwiki#path#relpath(cwd, wikifile)
|
||||
call add(result, wikifile)
|
||||
endfor
|
||||
|
Reference in New Issue
Block a user