Commit Graph

740 Commits

Author SHA1 Message Date
4f648b6567 Modify how tests are run to improve overall speed.
A Vader issue causes problems with the test results when using the
location list. Because of this the tests were modified to run 1 test
file per vim instance instead of running all tests in a single vim
instance. This resulted in signficant slow down in test execution time.
To speed up execution time only specific tests are run individually now.
2019-12-14 10:41:22 -07:00
eb26a66be5 Add check to generate_tags() to ensure a header is present.
Prior to this fix a file with tags present before any header would
result in vim errors. Now a single Vimwiki message is printed to alert
the user of the issue.
2019-12-14 10:41:22 -07:00
460fcb692e Make generation functions compatible with older vims.
PR , PR , and PR  introduced new features that broke
compatibility with older version of Vim. This modifies those changes to
ensure compatibility. Closes .

Removes usage of funcref(), closure. Fixes filter() call.
Made globpath calls not use the list argument.
Unlet a variable that is reused (sticky type checking)

v7.4.1989 modified filter() to accept a Funcref
v7.4.2120 Added function "closure" argument
v7.4.2137 add funcref()
2019-12-14 10:31:30 -07:00
c8bb658360 Merge pull request from tinmarino/fix_multiple_link_back
Allow VimwikiGoBackLink to store multiple jumps per page (links to headers) Fix 
2019-11-19 20:50:52 -07:00
ce4074aeb9 Test: Add vader tests for fixing going back links on same file 2019-10-28 19:14:50 +01:00
241126631d Merge pull request from tessarin/update-mathjax-cdn
Update MathJax CDN Loading Instructions
2019-10-28 05:05:03 -06:00
16998af36d Update MathJax CDN loading instructions
The instructions to loading MathJax from a CDN were outdated and not
working for some users.

This commit updates those links to conform with the instructions from:
https://www.mathjax.org/#gettingstarted
2019-10-25 16:13:52 -02:00
c4a40e7fc7 Fix: VimwikiGoBackLink does not go back to links on the same page 2019-10-24 23:24:17 +02:00
53ba047a18 Clean code: : mutualise bash: is_wiki_link: command not found in a script function 2019-10-24 23:24:17 +02:00
839a5bf608 Merge branch 'ratfactor-issue-420' into dev 2019-10-20 20:54:35 -06:00
85b220bae1 Merge branch 'issue-420' of https://github.com/ratfactor/vimwiki into ratfactor-issue-420 2019-10-20 20:27:25 -06:00
141d1aa081 Treat math blocks in the same manner as code blocks 2019-10-19 10:45:45 -06:00
4bc6ff4547 Exclude code block comments from header folding.
This makes sure comment characters that match markdown folding are not
recognized as a header and folder. Fixes , Fixes .
2019-10-16 22:31:42 -06:00
a42cd58636 Don't insert marker character with o or O within a code block.
Previously if a code block was part of a list and o or O was used a new
list marker would be inserted. Also moved the is_codeblock check
function to utils file for use elsewhere.
2019-10-16 22:27:26 -06:00
1f85a3c855 Merge pull request from simias/fix-407
Fix off-by-one error in get_next_line and get_prev_line
2019-10-15 12:15:14 -06:00
ad95e3463f Add error handling to VimwikiSearch per issue
- Create function wrapper around lvimgrep for input checking, pattern
   quoting, and error handling.
 - Add Vader tests for VimwikiSearch.
 - Change syntax loading from try/catch to explicit file check (to
   prevent Vader test bug).
 - Update doc/vimwiki.txt for changes.
 - Change test script to run Vader tests separately
2019-10-12 18:31:43 -04:00
ba84981b5a Merge branch 'abhinav-dev' into dev
This commit changes the autocmd registration in vimwiki so that
registration happens once rather than once per extension. PR 
2019-08-28 03:51:51 -06:00
f6a99569bd Merge abhinav-dev
autocmd registration simplification
2019-08-28 03:50:30 -06:00
0ce3c87a2e Merge pull request from defau1t/dev
Fixed typo and paragraph formatting in vimwiki help.
2019-08-28 03:36:01 -06:00
3cf10e8ddc Added name to contributors and changelog. 2019-08-26 12:18:59 -06:00
515155038f Fixed typo and paragraph formatting in vimwiki help. 2019-08-26 12:14:33 -06:00
4458216760 <leader>ww opens the currently active wiki.
The previous behavior was to open the index of the first wiki. This
change makes the command more consistent with similar mappings.
Closes .
2019-08-25 14:25:31 -06:00
a17a9826bd Fix 'VimwikiReturn 3 5' behavior within code blocks.
Previously a new list marker would get added when working within a code
block that was part of a list. This change excludes code blocks from
list marker creation.
2019-08-23 14:42:07 -06:00
e814c6ad93 Add test cases for VimwikiReturn command 2019-08-22 05:52:54 -06:00
4f674f68b4 Fix the method for changing the Vimwiki syntax for tests.
This change ensures the syntax is properly changed when running multiple
tests by removing the previously created temporary wiki and then
creating a new one.
2019-08-22 05:52:54 -06:00
5ce7c14a3d Properly handle lists with hard wraps. Fixes .
This change modifies the behavior of VimwikiReturn to not insert a new
list marker if not within a list. Mostly useful when mapping <CR> to
VimwikiReturn 3 5 or similar. The behavior of 'o' was also modified to
properly insert a marker in a list with hard line wraps.
2019-08-22 05:52:54 -06:00
b5d808b440 Don't use <Plug> definitions for VimwikiReturn mappings.
This is necessary to properly allow the user to remap these since there
are different arguments to the command. The documentation regarding this
command was also updated to be more clear.
2019-08-22 05:52:54 -06:00
152a7bfdf1 Register autocmds once
This commit changes the autocmd registration in vimwiki so that
registration happens once rather than once per extension.

Instead of the following,

    autocmd BufEnter *.md call s:setup_buffer_enter()
    autocmd BufEnter *.mdown call s:setup_buffer_enter()

We'll now only run,

    autocmd BufEnter *.md,*.mdown call s:setup_buffer_enter()

This probably has no effect on performance but it makes for a simpler
implementation.
2019-08-20 19:24:28 -07:00
28d78b0d39 Update grammar and Pathogen link in readme. 2019-08-19 21:59:08 -07:00
45025fa4f0 Fix docker build command syntax. Closes . 2019-08-01 05:19:39 -06:00
dcd68a6781 Fix off-by-one error in get_next_line and get_prev_line
The functions stopped at the end/start block marker (respectively)
instead of returning the following line. This caused issues when the
function was subsequently called in markdown mode since the start and
end block markers are the same.

This fixes 
2019-07-31 17:56:08 +01:00
0c561e5341 Add note about Telegram group 2019-07-28 15:34:19 +02:00
594ac7dbe1 Update test script and documentation. 2019-07-24 21:57:01 -06:00
fcb5850c28 Use updated key_mappings variable to check if table_mappings is set 2019-07-20 22:14:48 -06:00
0678df38e9 Support getbufvar for vim < v7.3.831 2019-07-20 22:13:48 -06:00
3180209c6f Use python3, update vim versions 2019-07-20 22:13:03 -06:00
0d0b9a7492 Add script to automate running tests 2019-07-20 22:12:27 -06:00
0c145c7604 Move helper files so they don't get run with test/* 2019-07-20 22:12:07 -06:00
fbec80b7d9 Remove control characters. Fixes 2019-07-17 07:15:06 -06:00
e68592b8ef Create a function fo reload the plugin. Fix setting of mediwiki syntax.
Also adds a few additional link creation tests.
2019-07-17 07:13:36 -06:00
86cad979e5 Better handling of extensions when normalizing links.
For markdown syntax the extension was added to the url multiple times if
the option g:vimwiki_markdown_link_ext was set which is now fixed.
Normalizing links no longer adds the extension to the description field.
2019-07-17 07:10:47 -06:00
86926b7212 Update documentation for local key mappings.
Original updates from PR .
2019-07-15 08:13:17 -06:00
8ec1cccb36 Update documentation for intro and folding sections.
Originals modifications from PR .
2019-07-15 07:28:12 -06:00
585a9fd16b Fix paths and add some additional settings 2019-07-14 21:50:49 -06:00
d536fa1117 Basic tests for creating links 2019-07-14 21:50:22 -06:00
fb7d2881d7 Ignore temp test directory 2019-07-14 07:33:25 -06:00
94d62ad7f2 Add vader tests and docker setup 2019-07-14 07:32:38 -06:00
0441be5e34 Rename folder 2019-07-13 21:50:35 -06:00
466bdcd4e8 Don't reuse variable in s:clean_url (sticky type checking)
Versions of Vim prior to 7.4.1546 had sticky type checking which
prevented a variables type from changing. Fixes .
2019-07-12 13:52:23 -06:00
af12065e92 Update changelog 2019-07-12 06:26:45 -06:00