1137 Commits

Author SHA1 Message Date
Philipp Oberdiek 7ab9983ddd Make collect_headers a global plugin function
This way it can be used in `tags.vim` to retrieve the headers of the
generated tag link section.
2022-04-09 20:14:04 -04:00
Philipp Oberdiek a905ee71e0 Update tag link captions in tag vader tests 2022-04-09 20:14:04 -04:00
Philipp Oberdiek 0690d8ad51 Add description key to tag link entries 2022-04-09 20:14:04 -04:00
Brennen Bearnes 63af6e72dd README.md: point to libera.chat channel (#1167) (#1194)
Co-authored-by: KaiserBarbarossa <kaiser.barbarossa@yandex.com>
Co-authored-by: Brennen Bearnes <code@p1k3.com>
2022-03-10 03:04:13 +01:00
Tinmarino 4d7a4da2e8 Doc fix helptags all (#1181) 2021-12-19 00:49:16 -03:00
Philipp Oberdiek c19e63b1e9 Make tag links relative to current file #794 (#1162)
Also add a vader test case and update the changelog as well as the list
of contributors.

Co-authored-by: Tinmarino <tinmarino@gmail.com>
2021-12-18 12:11:01 -03:00
Jean-Luc Bastarache ee31d45553 Feature: Add wiki page to buffer list using badd (#1185)
Co-authored-by: Tinmarino <tinmarino@gmail.com>
2021-12-18 12:08:54 -03:00
Tinmarino ecce184493 VimwikiTOC: update-listing in buffer more lazy (after #1155) 2021-12-18 11:53:59 -03:00
Tobias Mersmann 1bea2ce40a fix(update_listing_in_buffer): don't update listing if there are no changes
Before updating a listing, check if the update differs from the existing state.
Only then update the buffer, otherwise return early.

Initial reasoning: If `let g:vimwiki_auto_toc = 1` is set, saving a buffer would always update
the `contents`-section, even if there were no updates in this section. This lead to undesired
undo-behavior.

NOTE: this fix was only tested for the toc-listing.
2021-12-18 11:43:31 -03:00
ysftaha 2141fde8b8 Addresses issue #621 (#1181)
* issue#621: html highlighter

* docs for issue#621

* removing windows support for issue#621

Co-authored-by: Tinmarino <tinmarino@gmail.com>
2021-12-18 11:40:17 -03:00
Thomas Leyh 064a8f7ade Fix wildcard expansion in find_autoload_file
When using vim's native mechanism for `packages`, wildcards (*) are used
in the `runtimepath` since package folders can have arbitrary names.
They were not expanded, thus a path to e.g. `default.tpl` could not be
resolved when calling Vimwiki2HTML.

Resolves vimwiki/vimwiki#1193
2021-12-18 11:31:38 -03:00
Tulio Brunoro 95dd2e0d2c Revert breaking changes to customwiki2html.sh file
There is an extra space when calling the `basename` command, which causes the following error:
```
Vimwiki: 'basename: extra operand ‘md’
Try ''basename --help'' for more information.
```
2021-12-11 20:32:27 -07:00
Tomas Janousek 5148f5f601 Fix: Typo VimwikiUmderline → VimwikiUnderline in nested_typeface
(No idea how this typo actually manifests, just stumbled upon this by
chance.)
2021-12-11 20:26:44 -07:00
thecliguy a3a3fbf95f Replaced references to Freenode IRC with Libera 2021-09-20 11:16:56 -06:00
Lily Foster f28fe1ae43 Fix: Links opening in qutebrowser multiple times #763 2021-09-01 01:08:37 -06:00
Brennen Bearnes 8b53bd4c73 README.md: point to libera.chat channel (#1167)
README.md: point to libera.chat channel

Per discussion in #1131.

README-cn.md still needs updated.  This removes mention of the Telegram
group, but I'm guessing that can be re-bridged to the correct IRC / Matrix channel.

Co-authored-by: KaiserBarbarossa <kaiser.barbarossa@yandex.com>
Co-authored-by: Brennen Bearnes <code@p1k3.com>
2021-09-01 00:58:16 -06:00
petrisch 174eca3f06 Typo
Sorry for not beeing able to read.
2021-09-01 00:56:42 -06:00
paperbenni 22dcb36618 remove echo usage from VimwikiPasteLink 2021-07-29 13:53:27 -06:00
paperbenni 7d937615c1 Feature: VimwikiPasteLink to get absolute wiki link to the current file 2021-07-29 13:53:27 -06:00
Stephan T 1aa417fbd8 Fix typo 2021-07-28 10:33:05 -04:00
Tinmarino 212a66fcd6 Fix: forbid \$ for equation region start or stop #150 2021-06-11 12:06:43 -04:00
Tinmarino 369130edd7 Feature: Add thunderlink to schemes_web #435 2021-06-11 11:24:18 -04:00
Tinmarino c4e78fe310 Fix: Calendar integration if no vinwikilist #290 2021-06-11 10:57:56 -04:00
Tinmarino 45c89ebca4 Feature: Table cells permiting escaped separator (i.e. \|) #281 2021-06-11 10:50:53 -04:00
Tinmarino d43fdd14d2 Test: Demo: Renaming link text in markdown #1138 2021-06-11 09:22:52 -04:00
Tinmarino a182f7db8f Test: Fix bad space removed 2021-06-10 17:28:46 -04:00
Tinmarino 70682fc52f Pretty: Delete trailing space 2021-06-10 17:23:20 -04:00
Tinmarino 7eb6fed581 Pretty: Delete trailing space 2021-06-10 17:17:57 -04:00
Tinmarino 4cc6edf3eb Fix RenameFile with relative to root (prefix with /) #617 2021-06-10 17:15:29 -04:00
Tinmarino 9706f5eee8 Rename rename_link -> rename_file (corresponding to the exported RenameFile) 2021-06-10 16:13:40 -04:00
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