Commit Graph

733 Commits

Author SHA1 Message Date
241126631d Merge pull request #768 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
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 #212, Fixes #756.
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 #735 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 #420
- 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 #742
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 #744 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 #741.
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 #443.
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 #736. 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 #407
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 #598 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 #704.
2019-07-15 08:13:17 -06:00
8ec1cccb36 Update documentation for intro and folding sections.
Originals modifications from PR #694.
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 #715.
2019-07-12 13:52:23 -06:00
af12065e92 Update changelog 2019-07-12 06:26:45 -06:00
c58268df3f Make normalized links in diary pages use relative path.
A previous PR added this feature to the default syntax. This add the
same functionality to markdown syntax. Fixes #729
2019-07-10 21:06:33 -06:00
b997e687c3 Merge pull request #698 from jpmor/dev
Remove awa check triggering silent file edits.
2019-06-05 06:04:41 -06:00
8914b14e24 Remove awa check triggering silent file edits. 2019-06-04 21:30:52 -04:00
6ec85cd0e8 Allow buffer local mappings to overwrite existing mappings.
If the fileype is vimwiki then the vimwiki mappings take precedence.
Global mappings will not be overwritten. Closes #699
2019-05-24 20:41:12 -06:00
d045ad4db0 Modify horizontal rule (thematic-breaks) syntax for markdown.
This change makes the horizontal rule syntax more closely match the
commonmark spec https://spec.commonmark.org/0.29/#thematic-breaks. The
number of characters required was changed to 3 and '___' and '***' where
added as valid sequences. The space rules were not added becuase it adds
extra complexity for little benefit. Issue #664.
2019-05-23 21:59:13 -06:00
42a1f08ffa Disable spell check in code and math inline/blocks.
For nested syntaxes the default spell behavior will still be used e.g.
spelling in comments will still be checked.
2019-05-23 21:47:14 -06:00
68233c51eb Handle markdown image links '![]()'. 2019-05-23 21:23:53 -06:00