Commit Graph

1124 Commits

Author SHA1 Message Date
Charles Schimmelpfennig 0bb1b4945b Support angle bracket escaped markdown urls (#1211)
* add angle brackets to regex definition

* revert unecessary change to markdown link suffix

* Update vimwiki.txt

---------

Co-authored-by: Charles Schimmelpfennig <charles.schimmelpfennig@corteva.com>
Co-authored-by: NobleRat <tinmarino@gmail.com>
2023-10-31 13:45:18 -03:00
Tinmarino a479154770 Fix previous commit tests 2023-10-31 13:01:15 -03:00
Tinmarino 90b23b466f Fix: Folding code blocks using markdown syntax folds the entire rest of the file (#1323) 2023-10-31 12:40:39 -03:00
Tinmarino 68664e5d72 prettify small 2023-10-31 12:11:31 -03:00
Bence Ferdinandy 5d86b625f5 Fix: count ignored when looking up diary frequency
When calling VimwikiMakeYesterdayDiary (or Tomorrow) the wiki_nr is
looked up by vimwiki#diary#diary_date_link without access to the passed
count, which would result in the creation of the file in the correct
place, but with the diary_frequency of another wiki. Modify
vimwiki#diary#diary_date_link to take a possible third argument as the
wiki_nr+1 and modify the commands to pass <count> as the third argument.

Fixes: #1365
2023-10-16 10:12:32 -03:00
Justin McIntyre 65575fb103 Update README.md
Fixed documentation error
2023-10-16 10:08:24 -03:00
Aarón Fas f0fe154ede Fix wrong example snippet for listsysms option. 2023-07-31 08:27:35 -04:00
Tinmarino 09804c2a5f Fix: Jump to nested anchor bugged with markdown (issue #1356) 2023-07-10 12:47:03 -04:00
Jiaming Chen acc92fb648 Make auto_tags preserve existing tag section structure 2023-07-10 11:26:40 -04:00
Tinmarino 65b9f0e68b CI: add test for tag in codeblock should not be parsed (issue #1034) 2023-06-26 19:30:39 -04:00
Tinmarino c79f15a90b CI: Fix previous test for (issue #1279) 2023-06-23 12:28:52 -04:00
Tinmarino 26adc84dc3 Configure default syntax bloquote marker to include :: (issue #1279) 2023-06-23 12:11:40 -04:00
Tinmarino 942da42b96 CI: add test for unicode rxTableSep (issue #1297) 2023-06-22 19:33:54 -04:00
Julian Prein c5b7f7e76f Fix: Handle multibyte chars properly in get_cells (#1298) (fixes #1297)
Previously vimwiki#tbl#get_cells() would act on `line` as a normal
string (i.e. using `[idx]` and strpart()). This breaks when the column
separator (s:s_rep() or rxTableSep) is a multibyte character like the
vertical box drawing character │. In that case the separator is never
found and only one empty cell is returned. This also affects
vimwiki#tbl#format() which in turn clears the whole table each time the
insert mode is left.

Fix this issue by initially splitting the line into a list of the
characters. Getting the elements with `[idx]` now returns each character
instead of a byte. In addition len() is used in place of strlen() as
well as slicing together with join() instead of strpart().

Fixes: #1297 ("Table formatting breaks on multibyte separator")
2023-06-22 19:10:54 -04:00
Tinmarino bc3bc208d7 CI: Add test for colored convertion wiki syntax (issue #1311) 2023-06-22 18:57:16 -04:00
Tinmarino 40c2bbdcf3 Fix: HTML convertion for code is stripping newlines (issue #1311)
Initially titled: Can't enable syntax highlighting for codes in HTML files when converting wiki to HTML
2023-06-22 18:36:18 -04:00
Tinmarino e0a04e11b8 CI: Add test for highlight dates (issue #309, pr #1315) 2023-06-22 12:45:03 -04:00
Alex Claman 322d22bef8 Add basic GTD-style token highlighting (#1315)
* Add basic GTD-style token highlighting

* Update vimwiki.txt

* Revert "Update vimwiki.txt" This reverts commit bd7c9cfe68.
2023-06-22 12:43:03 -04:00
nolleh7707 5d0c9d3173 docs: add description for disable extension support, to avoid accidently working as wiki for normal docs 2023-06-22 11:35:04 -04:00
Joe Planisky f3b50e5f17 add jplanisky to contributors 2023-06-22 11:17:58 -04:00
Joe Planisky 85c47d1f97 add mixed (concatenated & discrete) tags to #1326 tests 2023-06-22 11:17:58 -04:00
Joe Planisky 89315912b1 fix duplicate tag issue #1326 2023-06-22 11:17:58 -04:00
Joe Planisky a1ca439719 fix cleanup in duplicate tags test 2023-06-22 11:17:58 -04:00
Joe Planisky 22fd036804 Add new Vader test for issue 1326 (duplicate tags) 2023-06-22 11:17:58 -04:00
Tinmarino 88620a2be0 Syntax: admit space trailing the yaml delimiters 2023-06-16 11:14:00 -04:00
Tinmarino 0069c5fb4e Improvement: gqq autowrap leading :: definition as &l:comments (#1279) 2023-06-14 14:04:08 -04:00
Tinmarino 738e24134e Fix previous commit refactoring with: get_globlinks_raw and complete_links_raw 2023-06-14 13:12:13 -04:00
Tinmarino 298a409b74 Fix: VimwikiGoto completion with file with space (#1229) 2023-06-14 13:04:26 -04:00
Tinmarino 69a5682d6f Merge pull request #1324 from rddunphy/dev
File name prompt fixes
2023-06-14 12:29:28 -04:00
Tinmarino 0700fa4068 Fix: Italics broken with 7a48268 commit (#1331) 2023-06-14 11:43:54 -04:00
Tinmarino 2cff9776e8 Feature: Recognize message:// URLs on Mac #1332 2023-06-14 11:34:57 -04:00
Tinmarino 65c3d48227 Comment: previous commit typo 2023-06-14 11:34:24 -04:00
Tinmarino cd2fa19f86 Doc: Explain how to clear typeface highlight (#1346) 2023-06-14 10:43:12 -04:00
Tinmarino d63948d873 Util: add vimwiki#vars#set_syntaxlocal function for consistency 2023-06-14 10:43:12 -04:00
Luke Atkinson cd9cfd299e Fix vimwiki#diary#calendar_sign when g:vimwiki_list is not set
If a user is happy with the default vimwiki location, they may not set
the g:vimwiki_list global variable. In this case, the
len(g:vimwiki_list) vimwiki#diary#calendar_sign function throws an
error every time it is called. This function is called for every day
displayed in the calendar which is very noisy. Checking if the variable
exists before doing the length check prevents the error and the rest of
the function works fine if the variable is not set.
2023-05-12 22:05:10 -04:00
Tinmarino 7a48268d24 Fix commit 72d0220, breaking syntax for bold due to bad punctuation preceded right flank (issue #1325) 2023-04-19 15:13:50 -04:00
Brennen Bearnes 71edcf6802 update g:vimwiki_version for latest release
I missed this before tagging; this will be v2023.04.04_1.
v2023.04.04_1
2023-04-04 20:28:34 -06:00
Brennen Bearnes be45bd65f5 Doc: Note changes for 2023.04.04 v2023.04.04 2023-04-04 20:13:34 -06:00
R. David Dunphy ba02c38346 Use fnameescape() instead of escape() in edit_file() 2023-04-02 01:32:03 +01:00
R. David Dunphy 864f066405 Don't escape filenames for goto() 2023-04-02 01:08:36 +01:00
R. David Dunphy 8f651834fd Cancel goto() if input was empty 2023-04-02 00:57:52 +01:00
Brennen Bearnes 11350f572b is_diary_file(): use filereadable() to check a single file
Intended to address #1267 - "get_diary_files() takes very long to
execute on Windows - this leads to very slow link-creation using the
Enter key".

In theory, this should be a performance improvement for link creation on
systems with very slow filesystem access (this came up under Windows, but
ought to be a general optimization).  It does nothing for generating the
entire list of diary files, which by nature has to get the whole list
anyway.

  - Uses a filereadable() call against a path instead of checking the
    results of get_diary_files() for most calls.

  - Introduces is_among_diary_files() for the case where you want to
    check against a get_diary_files() list.

  - is_diary_file() will pass through to is_among_diary_files() if it gets
    invoked with a second parameter, to retain backwards compatibility on
    the off chance anyone has scripted against this behavior.  I'm not sure
    this is necessary, but trying to be cautious with the implicit API
    here.

  - Includes a test/api_base_is_diary_file.vader

My original version of this change assumed that input would be in the
form of "2023-01-01", instead of a fully-qualifed filename.  As it is,
it expects a full path to the file, in keeping with the list returned by
vimwiki#diary#get_diary_files().

Bug: #1267
2023-03-30 17:08:58 -06:00
Tinmarino dec6a9ecab CI: Lint run_test: reorder function in top>down 2023-03-22 01:22:25 -03:00
Tinmarino 57107c7c56 CI: Lint run_test: all in function 2023-03-22 01:17:20 -03:00
Tinmarino 72d02207b0 Syntax: Fasten highlighting, from 200ms to 20ms for first screen update
Problem:

The loading of a .md file was slow due to multiple nested lookback.
It is advised in vim help to prefer \zs, see :h /\@<
Anyway, it is useless to nest them.

089.080  000.085  000.085: sourcing /home/mtourneb/.vim/after/syntax/vimwiki.vim
089.264  005.184: opening buffers
089.322  000.058: BufEnter autocommands
089.323  000.001: editing files in windows
089.414  000.091: VimEnter autocommands
089.415  000.001: before starting main loop
303.698  214.283: first screen update
303.700  000.002: --- VIM STARTED ---

Solution:

Remove the function s:expand_delimiter in vars.vim.
It was doing a duplicate job with vimwiki#u#hi_expand_regex
And ... well avoid lookback as much as possible

091.784  000.087  000.087: sourcing /home/mtourneb/.vim/after/syntax/vimwiki.vim
091.991  006.034: opening buffers
092.050  000.059: BufEnter autocommands
092.052  000.002: editing files in windows
092.172  000.120: VimEnter autocommands
092.173  000.001: before starting main loop
112.574  020.401: first screen update
112.578  000.004: --- VIM STARTED ---
2023-03-18 01:50:53 -03:00
Tinmarino f4bd841a4c Tags: improve VimwikiSearchTags which was not using user configuration (issue #1316) (v2) 2023-03-17 22:05:47 -03:00
Tinmarino 5eb5c9c71f Fix: ugly debug echom at start #1317 2023-03-17 19:17:41 -03:00
Tinmarino 8640988c5c Markdown typeface: match closer to GFM specification, also add tests 2023-03-17 16:08:27 -03:00
Tinmarino f5399ffdfa Improve typeface specification closer to GFM and test 2023-03-17 13:44:05 -03:00
Tinmarino a7aa5eb1ea Doc: replace http by https 2023-03-17 04:51:14 -03:00