Commit Graph

235 Commits

Author SHA1 Message Date
5cdeb9a682 Improve markdown syntax for fenced code blocks. Closes #764 2020-01-01 10:58:56 -07:00
2c50f710b8 Update changelog 2019-12-30 10:25:02 -07:00
b9eec79cc6 Update tags file format. Closes #779. 2019-12-30 10:07:20 -07:00
3cc6fa71f6 Update default list_margin value 2019-12-21 09:16:48 -07:00
cd3e3d238b Update changelog 2019-12-20 20:41:08 -07:00
58331993c7 Update changelog 2019-12-14 21:08:32 -07:00
c58d5da049 Set default ext2syntax values for markdown and mediawiki.
Closes #769.

Also fixes an error when adding missing '.' to mapped extensions. The
previous behavior tried to access a value after it was removed from the
dictionary.
2019-12-14 20:31:59 -07: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
85b220bae1 Merge branch 'issue-420' of https://github.com/ratfactor/vimwiki into ratfactor-issue-420 2019-10-20 20:27:25 -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
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
f6a99569bd Merge abhinav-dev
autocmd registration simplification
2019-08-28 03:50:30 -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
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
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
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
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
8914b14e24 Remove awa check triggering silent file edits. 2019-06-04 21:30:52 -04: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
6755068152 Fix #415, expand iabbrev entries on <CR>. 2019-05-23 21:22:29 -06:00
8bfdf54d10 Update changelog 2019-05-22 06:28:03 -06:00
12df0bddb2 Update documentation 2019-05-20 08:29:12 -06:00
8c6bc81756 Improve documentation on global key mappings (#703) 2019-05-11 12:55:26 -06:00
c05037a490 Allow escaped characters in markdown links.
Fixes #619
2019-05-08 21:30:06 -06:00
cde4703354 Modify regex pattern for markdown links.
Fixes #240. Also fixes a related issue where markdown links where not
correctly highlighted in todo lists. Adds concealment for markdown links
in todo lists.
2019-05-08 20:55:56 -06:00
61a6862f8e Update changelog 2019-05-03 22:25:09 -06:00
fd8832cfa1 Fixes #237 VimwikiRenameLink now works for markdown syntax. 2019-05-03 21:19:05 -06:00
ad4d43abfe Add :VimwikiGoto key maping 2019-04-27 11:10:32 -05:00
4106cb7bc7 New option g:vimwiki_key_mappings to enable/disable key mappings.
All key mappings have the option of being disabled but the <Plug>
definitions are still available for user customization. Key sequences
are no longer overwritten if a mapping already exists. Fixes #671,
fixes #425.
2019-04-26 21:17:35 -06:00
e84dcbfa25 Prevent sticky type checking (E706) errors with older Vims (#681)
Vim used to throw the E706 error if you tried to change a variable's
type. This error can be triggered by vimwiki if, during the user
settings loop in `read_global_settings_from_user()`, the variable type
for `users_value` changes.

The vim error was removed in v7.4.1546 as part of
f6f32c38bf.
2019-04-26 11:06:09 -06:00
6787e0fb7e Change diary_rel_path minimum length to 0 (#689)
Changing this option to allow empty strings places the diary files in the same directory as the main wiki files. This is more backwards compatible with previous releases.
2019-04-26 06:23:45 -06:00
1e5c93ea91 Improve documentation of key bindings in README (#687) 2019-04-25 08:18:41 -06:00
510c149512 Add wikilocal option to assign a name to each wiki.
Names can be used for interwiki links in the format wn.name:link.
Additionally, :VimwikiUISelect and the menu created in GVim utilize the
wiki name. Fixes #612, closes #477.
2019-04-21 13:05:01 -06:00
37f020d21a Omnicompletion fix for Windows (#660)
* Temporary fix for omnicomplete of vimwiki links - #456.

This fixes the omnicomplete of wiki links under Windows which were
not working since paths on Windows use '\' instead of '/'. This is
a temporary fix until path refactoring is done.

* Update changelog with description of fix for #456
2019-04-20 17:28:32 +02:00
3d076f01c8 New Logo and Screenshots
Update CSS Styles

Add Splash Image

Compress PNG

Remove header

Change headings sizes

Add background colors to code blocks and use HEX

Update fonts and put back old screenshots

Change font-size in code blocks
2019-04-19 21:01:02 +02:00
9d10610c4a Add option g:vimwiki_auto_header to automatically generate H1.
A level 1 header will automatically be generated for new files. The
title used in the header is based on the filename. Closes #245.
2019-04-13 07:00:06 -06:00
5f01182468 Add html_filename_parameterization option.
This adds the vimwiki_local `html_filename_parameterization` option (0|1)
which performs the same sanitization of filenames as does the
vimwiki_markdown gem.

For example, if your file is called "My File.md" it will be written out
as "my-file.html".

If the html_filename_parameterization options is enabled, we also _do
not delete_ non-matching html files when the VimwikiAllToHtml command is
run.

Closes #129
2019-04-13 10:07:51 +12:00
b172db23d3 Add changelog entry 2019-04-10 16:00:50 +02:00
8fbe51d614 Update with review comments 2019-04-09 22:31:41 +02:00
a5bda652d0 Add option to not conceal one-character markers
Adds new configuration variable, "conceal_onechar_markers", defaulting
to on (preserving default behaviour)

Adds if-statement around relevant parts of code (as suggested in the
issue), which uses the new configuration variable.

Fix #315 - Don't conceal one-character markers
2019-04-09 08:17:56 +02:00
848feb43e1 Add v2.5 release info. Issue #652 2019-04-07 09:04:46 -06:00