Commit Graph

1006 Commits

Author SHA1 Message Date
Tinmarino b4f7c7ba3d Fix: deprecate has been moved from base to u 2021-06-10 16:07:27 -04:00
Tinmarino 114ead874c Test: Fix: for Vim <= 7.3 the linkify function 2021-06-09 13:13:05 -04:00
Tinmarino 1fbe1bc6a8 Feature: Syntax: Provide vimwiki language escape sequences -> \token #1044 2021-06-09 12:42:51 -04:00
Tinmarino 62baafe259 Test: link creation with dot #924 2021-06-09 09:45:25 -04:00
Tinmarino 0181009dba Feature: vimwiki#base#linkify() with markdown syntax setting #994 2021-06-09 09:26:52 -04:00
Tinmarino 573e3d1952 Test comment last 2021-06-08 17:44:38 -04:00
Hugo Hörnquist eedc26bfe6 Fix self-link for TOC links.
Previously TOC links contained a closing </a>-tag, but lacked the
accompanying start tag, leading to invalid HTML. This fixes that, along
with placing class="justcenter" on the correct tag once again.
2021-06-08 17:44:07 -04:00
Tinmarino 760cab232d Test for links_space_char #1132 2021-06-08 17:14:43 -04:00
Vinny Furia 725709ba80 Update changelog
Add correct PR number
2021-06-08 15:43:26 -04:00
Vinny Furia 8a73cd8668 Updated changelog and added to contributing
Missing PR number
2021-06-08 15:43:26 -04:00
Vinny Furia 7cea1cfb3c Do not substitute spaces in LinkDescription 2021-06-08 15:43:26 -04:00
Steven Stallion 8fef79bcbd VimwikiGoto: Support wiki pages with spaces (#1128) 2021-05-20 14:50:10 -05:00
Tinmarino 1f77b7e6f6 Table: Fix exception if i<Tab> at end of line if next line is bad (Issue #1126) 2021-05-17 10:36:12 -04:00
Reiner Herrmann 84e9422c7c Add matrix as known URI scheme
It has meanwhile been accepted into the HTML standard:
 https://github.com/whatwg/html/pull/6320
2021-05-13 10:29:05 -06:00
Stefan Schuhbäck f6c419fb87 Add wikilocal option showing description in generated links 2021-05-06 20:36:42 -04:00
Matthew Toohey 4c7ab73c51 Added vertical svg logo in doc (#1111)
Co-authored-by: mtoohey31 <mtoohey31@users.noreply.github.com>
Co-authored-by: Tinmarino <tinmarino@gmail.com>
2021-04-06 22:13:24 -04:00
Brennen Bearnes f396e8a494 Fix resolution of leading-slash links, add link tests (#1108)
Hopefully this solves #1084, "Page links with leading slash lead to a
file in working directory, not a page at the root of the wiki", introduced
in 850aace.

It also adds a set of tests for different kinds of wiki links:

  - api_base_resolve_link.vader
  - link_syntax_markdown.vader
  - link_syntax_vimwiki.vader

Includes some fixes for locally-failing tests, removes a test from
test/map.vader and comments out test/config_vars.vader entirely for the
moment.

Code by : Brennen Bearnes <code@p1k3.com>
2021-04-06 22:09:37 -04:00
Brennen Bearnes 618893be00 Vimwiki2HTML: remove string concat from variable substitution (#1110)
Problem: I noticed that running :Vimwiki2HTML for a file with a `"` in
the `%title` line would error out.  For example, a title like:

    %title this will die: "

Causes:

    Error detected while processing function vimwiki#html#Wiki2HTML[1]..<SNR>177_convert_file[15]..<SNR>177_convert_file_to_lines
_template:
    line    8:
    E116: Invalid arguments for function substitute(v:val, "%title%", "this will die: "", "g")

Solution: It seems like the string concatenation here was unnecessary.
At least on my vim 8.1, the evaluated code seems to have access to the
correct variables.

I'm sure there are bigger problems with the HTML generation here, but this
allows my ~2000 pages with titles to render without throwing errors.

Also adds a brief test and removes some unnecessary DeleteFile() calls
from html_convert_default.vader.

Co-authored-by: Brennen Bearnes <code@p1k3.com>
2021-04-05 22:07:38 -05:00
Fergus Collins db85dc54c9 Doc: Fix trailing closing brace and comma typo when describing the defaults of g:vimwiki_ext2syntax (#1106)
* Fix trailing closing brace and comma typo

* add `C-Fergus` to contributors

* add pull request to changelog

* update pull request number to `#1106`
2021-03-15 15:19:43 -03:00
Levi Rizki Saputra 61a6ce6686 Fix Renaming and HTML Exporting Issue (#1057)
On Windows.

Commits squashed from first to be committed to most recent:
* fix subdir not correct when path using `\`

* fix slice by variable value not supported in vim 7.3

* remove last '\' from path in CustomWiki2HTML

* fix CSS path in CustomWiki2HTML wrong

* remove unused confirm CustomWiki2HTML

* use ==# rather than == in shellescape html.vim

* remove "FIXME this can terminate in the middle of a path component! from
base#subdir

* update doc/vimwiki.txt

* update contributor to doc/vimwiki.txt

* add comment in html#shellescape
2021-02-05 08:58:02 -03:00
Rane Brown d34abf9fa5 Update variable name used to open markdown image links 2021-02-01 14:55:11 -07:00
Niklas Söderlund a9d157fa0f Restore <C-@> list item toggle on Unix systems
A changed aimed to allow user configuration files to be able to override
all default mappings for the VimwikiToggleListItem plug did so by
removing the optional forth argument to vimwiki#u#map_key(). This
argument if set to 1 allows the same plug to be mapped to multiple keys
in the same mode. If not present only the first mapping takes effect and
all later attempts to map the plug in the same mode result in a no-op.
Thus allowing any user configuration to set it first and then 'skipping'
the defaults.

The change however did not account for that the default on Unix systems
was to map both <C-Space> _and_ <C-@> to VimwikiToggleListItem so the
change breaks this behavior, described in issue #1061.

Fix this by restoring the forth argument to vimwiki#u#map_key() to allow
multiple mappings to the same plug/mode but wrap it in a block to first
check if the user have overridden it or not. This goes back to how his
was handled before vimwiki#u#map_key() was added in [1].

1. 4106cb7bc7 ("New option g:vimwiki_key_mappings to enable/disable key mappings.")

Fixes: 48baa1f4cd ("Allow VimwikiToggleListItem mapping to be replaced (#1047)")
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
2021-01-15 13:48:13 -03:00
Niklas Söderlund 8f92aaffe4 Default to wiki number 0 if diary is called outside a wiki buffer
If a diary page is opened from outside a wiki buffer the diary frequency
and start of week options are not respected as the wiki number is not
yet set for the local buffer.

Fix this by defaulting the wiki number to 0, which is what is done in
vimwiki#diary#make_note() for the diary_rel_path option that suffers
from the same problem.

Example on how to trigger the problem:

    let g:vimwiki_list = [{'path': '~/.vimwiki', 'diary_frequency': 'weekly', 'diary_start_week_day': 'monday'}]

    $ vim -c VimwikiMakeDiaryNote

Fixes: a3be479d5a ("Add a diary frequency option (#884)")
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
2021-01-12 20:15:30 -03:00
Tinmarino 0a9488f3f1 Feature VimwikiColorize maps in visual and normal mode #990
Colorize working for visual selection
Add map (,wc), test and doc
2021-01-10 19:03:37 -03:00
Tinmarino e91711eb79 Test: Fix error in previous typeface hi 2021-01-10 13:16:34 -03:00
Tinmarino 850aace465 Conf: #1060 Get configurable schemes_web
Permit opening file with name "ssh: name with spaces.md"
2021-01-10 13:00:54 -03:00
Tinmarino e7124290a2 Fix: Typeface font highlight VimwikiBoldItalicUnderline was not bold
Fix 2: s:setup_cleared_syntax() was reconfiguring badly
Test: for hi VimwikiBold -> cterm=bold
2021-01-10 12:27:35 -03:00
Tinmarino 788a961052 Test: Add option to configure date string format #1073 2021-01-07 22:15:35 -03:00
Tinmarino 5996fdf26a Test: #1048 <Plug>VimwikiTableNextCell 2021-01-06 14:36:06 -03:00
Tinmarino 29fa4b028b Doc: Indent Docstring inside function 2021-01-06 14:36:06 -03:00
yhu266 ffc4e41208 move changelog entry to the end 2020-12-29 11:38:24 -03:00
yhu266 036a7d24f9 Add option to configure date string format 2020-12-29 11:38:24 -03:00
Tinmarino 8c7937c765 Fix: #1074 Key not present in Dictionary: lists_return in g:vimwiki_key_mappings
Bug from previous PR #1066
2020-12-29 11:29:09 -03:00
yuuy bb4f5f85e8 feat(vimwiki_key_mappings):add a flag lists_return 2020-12-28 19:45:30 -03:00
yuuy 84928f7ace feat(vimwiki_key_mappings):add a flag lists_return 2020-12-28 19:45:30 -03:00
Tinmarino dbe332a095 Fix: Jenkins: Dockerfile install py3-pip 2020-12-28 19:27:49 -03:00
Chip Senkbeil e4fc0ca0e5 Revise with table column alignment based on work done for vimwiki-server 2020-12-22 20:25:56 -03:00
Chip Senkbeil 237f67db4e Revise based on comments 2020-12-22 20:25:56 -03:00
Chip Senkbeil 4f0df71d84 Rename component to element 2020-12-22 20:25:56 -03:00
Chip Senkbeil 1b2f34f5e0 Fix bad whitespace characters link 2020-12-22 20:25:56 -03:00
Chip Senkbeil 9753bcbcde Add TODO about preformatted text metadata list separators 2020-12-22 20:25:56 -03:00
Chip Senkbeil c3eff1dd0e Update header and definition list specs to support inline components 2020-12-22 20:25:56 -03:00
Chip Senkbeil 333b44a238 Correct statement about link with wikiN: needing N to be 1 (should be 0..N-1) 2020-12-22 20:25:56 -03:00
Chip Senkbeil 2c10045004 Add vimwiki language specification 0.1.0 2020-12-22 20:25:56 -03:00
Levi Rizki Saputra 8d4cb7f11d Revert "Fix Renaming issue in Windows and ext with two dot (#1051)" (#1056)
This reverts commit e922f7302f.
2020-11-20 11:05:51 -03:00
Levi Rizki Saputra e922f7302f Fix Renaming issue in Windows and ext with two dot (#1051)
* fix subdir not correct when path using `\`

* fix slice by variable value not supported in vim 7.3
2020-11-20 09:08:51 -03:00
Amit Beka 96713548cc configure expression for Todo words (#1053)
Enable the user to conveniently set the regular expression used for the
`VimwikiTodo` syntax group, instead of the defaults which might be
more suitable to code.

This setting is now also local per wiki.

Signed-off-by: Amit Beka <--->

Co-authored-by: Amit Beka <--->
2020-11-20 09:02:55 -03:00
Amit Beka 609fc5f509 Map: Enable changing insert mode table mappings (#1048)
Mapping `<Tab>` and `<S-Tab>` at insert mode sometimes collide with
other plugins which utilize these for completions (e.g. coc example
mapping).

Since for many users the case for completion is more frequent than table
editing, this patch enables changing these mappings using the options
`<Plug>VimwikiTableNextCell` and `<Plug>VimwikiTablePrevCell`.

This patch makes it easier of those using multiple plugins and have no
desire or knowledge in debugging the collision.
It complements #1030 by providing a more direct and documented method
for setting custom keymappings.

Signed-off-by: Amit Beka <--->

Co-authored-by: Amit Beka <--->
2020-11-19 09:55:19 -03:00
Amit Beka 523986df4b enable strikethrough for Neovim (#1054)
Neovim has a different method of marking applied patches, using neovim
versions, since patches from Vim are not merged by chronological order.

Signed-off-by: Amit Beka <--->

Co-authored-by: Amit Beka <--->
2020-11-15 09:21:41 -03:00
Rajesh Sharma 48baa1f4cd Allow VimwikiToggleListItem mapping to be replaced (#1047)
* Allow VimwikiToggleListItem mapping to be replaced

Currently VimwikiToggleListItem mapping cannot be removed but only new mapping
to it can be added. This commit will allow to add custom binding to this
function and release default mapping of <C-space> and <C-@>, which was how it
was before https://github.com/vimwiki/vimwiki/pull/686

* Update changelog + contributor list

* endi -> endif

Co-authored-by: Tinmarino <tinmarino@gmail.com>
2020-11-12 22:22:25 -03:00