Fix relative paths for VimwikiRenameLink. Merge PR #787.

Fixes #90 

__Problem__: VimwikiRenameLink does not rename dir1/toto url in dir2/tata
because the dirs (dir2 and .) were well crossed but badly inspected.
__Solution__: `blob(.ext*)` -> `glob(**/*.ext)` + find the relative URL

* Fasten: VimwikiRenameLink goes faster with cache
More: To compute old_url regex, use a cache dict because it is the same
for files in the same directories

* Util DeleteHiddenBuffer -> do not delete Vader buffer

* Test: Prettify: Util: teardown delete defined function

* Remove unnecessary trailing spaces
Note: list_VimwikiReturn.vader has some necessary trailing spaces
This commit is contained in:
Tinmarino
2020-01-05 00:21:52 -04:00
committed by Rane Brown
parent 8ccfeb4fdb
commit d9412218e3
12 changed files with 728 additions and 492 deletions

View File

@ -1,3 +1,9 @@
# Testting <CR> keypress in insert mode on list item
#
# Note: some trailing spaces are necessary at the end of list items like `1.`
# better read this file with `set list`
Include: vader_includes/vader_setup.vader
Given vimwiki (List with hard wraps):
@ -112,13 +118,13 @@ Expect (No list continuation in code block):
Given vimwiki (List from help file):
1. item
---
1. item
1. item
continue
---
1.
---
1.
@ -135,19 +141,20 @@ Do (List ops):
3j
A\<CR>\<Esc>
# Note: trailing space <- autoindent
Expect (List per VimwikiReturn 1 1):
1. item
2.
---
1. item
1. item
continue
---
1.
2.
---
1.
2.
@ -165,21 +172,22 @@ Do (List ops):
3j
A\<CR>\<Esc>
# Note: some trailing space added
Expect (List per VimwikiReturn 2 2):
1. item
---
1. item
1. item
continue
2.
---
1.
---
1.
---
@ -195,18 +203,19 @@ Do (List ops):
3j
A\<CR>\<Esc>
Expect (List per VimwikiReturn 3 3):
1. item
2.
---
1. item
1. item
continue
2.
---
---
@ -227,19 +236,19 @@ Expect (List per VimwikiReturn 4 4):
1. item
---
1. item
1. item
continue
---
---
---
Execute (Map CR):
@ -258,14 +267,14 @@ Expect (List per VimwikiReturn 3 5):
1. item
2.
---
1. item
1. item
continue
2.
---
---
1.