Create a function fo reload the plugin. Fix setting of mediwiki syntax.

Also adds a few additional link creation tests.
This commit is contained in:
Rane Brown
2019-07-17 07:13:36 -06:00
parent 86cad979e5
commit e68592b8ef
4 changed files with 81 additions and 12 deletions

View File

@ -5,6 +5,11 @@ Given vimwiki (Text that is not a wikilink):
www.google.com
https://www.google.com
multiple words
let's
let's
file.wiki
file.md
file.mw
Execute (Set syntax to default):
call SetSyntax('default')
@ -20,12 +25,28 @@ Do (Create links default syntax):
j
v$
\<Enter>
j
v$
\<Enter>
j
\<Enter>
j
\<Enter>
j
\<Enter>
j
\<Enter>
Expect (Vimwiki links):
[[test]]
[[www.google.com]]
[[https://www.google.com]]
[[multiple words]]
[[let's]]
[[let]]'s
[[file.wiki]]
[[file.md]]
[[file.mw]]
Execute (Set syntax to markdown):
call SetSyntax('markdown')
@ -41,15 +62,31 @@ Do (Create links markdown syntax):
j
v$
\<Enter>
j
v$
\<Enter>
j
\<Enter>
j
\<Enter>
j
\<Enter>
j
\<Enter>
Expect (Markdown links):
[test](test)
[www.google.com](www.google.com)
[https://www.google.com](https://www.google.com)
[multiple words](multiple words)
[let's](let's)
[let](let)'s
[file wiki](file.wiki)
[file](file.md)
[file mw](file.mw)
Execute (Set syntax to mediawiki):
call SetSyntax('mediawiki')
call SetSyntax('media')
Do (Create links mediawiki syntax):
\<Enter>
@ -62,11 +99,27 @@ Do (Create links mediawiki syntax):
j
v$
\<Enter>
j
v$
\<Enter>
j
\<Enter>
j
\<Enter>
j
\<Enter>
j
\<Enter>
Expect (Mediawiki links):
[[test]]
[[www.google.com]]
[[https://www.google.com]]
[[multiple words]]
[[let's]]
[[let]]'s
[[file.wiki]]
[[file.md]]
[[file.mw]]
Include: vader_teardown.vader