Commit Graph

937 Commits

Author SHA1 Message Date
Tinmarino
a51052cbe6 Feature: VimwikiVar to list, get and set variables
Refaction:
- Add g:vimwiki_syntax_list to set syntaxlocal variables
- Delete: syntax/vimwiki_markdown.vim and friends
- Change: vimwiki_syntax_variables -> vimwiki_syntaxlocal_vars for consistency
- Include: some doc in design notes
2020-08-17 23:51:48 -04:00
kraem
ee2d67751e Fix typo in help file 2020-08-17 09:21:05 -04:00
Tinmarino
5c64ced22d Feature: Utility function: linkify to extract link title from url (PR #982 from @jeromg) 2020-08-14 01:30:04 -04:00
Tinmarino
d93858509d Prettyfy: Plugin: Comment and one antipattern 2020-08-13 01:59:47 -04:00
Tinmarino
0b85dd1a7b Feature: Syntax typeface delimiters can end at punctuation 2020-08-13 01:59:21 -04:00
Tinmarino
22d9d012ba Fix: Broken TOC links format when using default syntax (Issue #981)
- Not normalising for default
- SetExt header missed a `^` in the regex so mateched the trailing ===
of === head3 ===
2020-08-12 23:59:45 -04:00
Tinmarino
212cd8e09b Doc: rename DesignNotes.md -> design_notes.md 2020-08-12 11:17:00 -04:00
Tinmarino
4431caf7ff Fix: Vars.vim error in parsing: key not present (Issue #980) 2020-08-12 10:35:40 -04:00
Tinmarino
11337f5b34 Test: remove vader_setup and vader_teardon 2020-08-12 09:12:17 -04:00
Tinmarino
39407014c8 Syntax: Stricter typeface and fix preCode (alias inline) nested in bold
Fix: Syntax bug precode nested in bold apperead bold

Problem:
1. `that_ HERE _was` italic
2. `__that ``HERE`` was__  bold => PreCode should not receive typeface
region changes

Solution:
1. Stricter regex (and add \* to VimwikiError)
2. Add VikiError and WikiPre to nestables syntaxes
2020-08-12 01:37:27 -04:00
Tinmarino
a241d458ab Syntax: Emoji faster conceal with keyword 2020-08-12 01:20:55 -04:00
Tinmarino
a1f1b9c290 Syntax: Stricter italic match: match '_that_' not 'a_ that _a'
See: https://github.github.com/gfm/#emphasis-and-strong-emphasis

`A single * character can open emphasis iff (if and only if) it is part of a left-flanking delimiter run.`

Tim Pope default is too permissive (leads to too much emphasis openener): `\S\@<=_\|_\S\@=` -> `_\S\@=`
2020-08-09 16:29:39 -04:00
Tinmarino
21c5a7f796 Feature: Better joining bullet and task lists (set comments) 2020-08-09 16:14:31 -04:00
Tinmarino
7144df6b96 Test: Refactor: Normalize names and behavior 2020-08-09 16:13:53 -04:00
Tinmarino
4b041a606a Refactor: Mutualize messaging (echo) 2020-08-09 16:06:35 -04:00
Tinmarino
188ead55db Config: Permit tag configuration for syntax, search and match (Issue #922 #928)
Affects: (via user configurated regexp)

- VimwikiGenerateTagLinks
- follow_link
- completion
- Syntax Highlighting
2020-08-08 04:06:20 -04:00
Tinmarino
dede5a1eea Change: VimwikiCheckLinks work on current wiki or on given range
Problem: VimwikiCheckLinks can be slow
Solution: Work only on current wiki or accept a range
2020-08-08 04:01:31 -04:00
Tinmarino
659ca62b29 Fix: Accessing other filetypes within vimwiki (Issue #979)
Note: Viwiki no longer rules them all
2020-08-07 13:26:14 -04:00
Tinmarino
4aa3ca5c16 Fix: VimwikiGenerateLinks crash with single quote in filename (Issue #886 #881) 2020-08-07 12:27:05 -04:00
Tinmarino
dd239c58fb Comment: tipo (for faster grep) 2020-08-07 12:27:05 -04:00
Tinmarino
f18bf3dafb Fix: Html convertion regex Bold and Italic (Issue #977)
Problem: I copied rxBold from markdown (mea culpa)
Solution: Use the one that was defined in default
2020-08-07 12:27:05 -04:00
Tinmarino
348b014957 Fix: Typeface should not be nested in single equation (#977)
Solution: make thos a tex nested region and let tex decide the syntax
2020-08-07 12:27:04 -04:00
Tinmarino
aa628f8a12 Feature: Emoji support conceal and complete 2020-08-07 02:39:53 -04:00
Tinmarino
0693e41132 Fix: VimwikiTOC removes next non-empty line (Issue #910) 2020-08-06 17:04:58 -04:00
Tinmarino
8a50d022b1 Fix: follow_link (suffix) and VimwikiGenerateTagLinks (__FileExtension__) (Issue #914)
Problem:
- follow_link failed with header with number at the end
- VimwikiGenerateTagLinks did not replace the __FileExtension__

Solution:
- follow_link try first 1 time with suffix number n and then n times without
- VimwikiGenerateTagLinks replace the __FileExtension__
2020-08-06 11:21:48 -04:00
Tinmarino
69ead3bf3c Fix: VimwikiTOC is broken against headers with link (Issue #182)
Problem: VimwikiTOC and follow_link do not support header (anchor) with
link in their body

Solution:
- VimwikiTOC (easy): Create function base.vim s:clean_header_text that
converts [DESC](URL) -> DESC
- follow_link (hard):
-- [[URL]]: was already working due to punctuation removal.
-- [DESC](URL): Search for a potential `]([^)]*)` after every character
2020-08-05 22:26:05 -04:00
Tinmarino
e4186adc3d Fix: iMap <Cr> Interfere in completion (alias popup-menu, pum) (Issue: #813)
Problem: When pum opened, the mapping of <CR> is triggered but user
want the default behaviour: to choose a completion item

Solution: Conditional mapping:
inoremap <expr><silent><buffer> <CR> pumvisible() ? '<CR>' : ':<Esc>:VimwikiReturn 1 5<Cr>'
                         The previous mapping  -----------------^
2020-08-05 12:13:13 -04:00
Tinmarino
8cc99c00c2 Fix VimwikiRenameLink ruins window layout (Issue #592) 2020-08-05 10:22:32 -04:00
Jerome Gay
b1de908f0e Fix: is_diary_file to support whitespaces (Issue #970) 2020-08-04 19:15:30 -04:00
Tinmarino
708fde781a Fix: tilde ~ not supported in g:vimwiki_listsym_rejected (Issue #962)
Just escape the tild in match
2020-08-04 18:57:02 -04:00
Tinmarino
825870ec1b Fix: Highlight borken with done item rided by code (Issue #971) 2020-08-04 17:44:37 -04:00
Tinmarino
fc056cfeca Feature: Markdown: Support SetExt Heading (Issue #209)
Like these
==========

See: https://spec.commonmark.org/0.29/#setext-headings

Note: work for follow_link and VimwikiTOC
2020-08-04 01:17:34 -04:00
Tinmarino
40f02293bf Prettify Syntax: Reduce var name && Move from vars.vim to syntax.vim 2020-08-03 22:21:02 -04:00
Tinmarino
94a78859d7 Refactor: Syntax as region (code, eq, sub, sup, strike) => Fix (Issue #709)
More syntax pattern are defined as regions => Faster, enable nesting
2020-08-03 18:45:46 -04:00
Tinmarino
fb178f8e3c Fix: Typeface: var_with_undersore triggered syntax italic 2020-08-03 01:00:14 -04:00
Tinmarino
22bb7d9570 Doc: Update Changelog 2020-08-03 00:42:13 -04:00
Tinmarino
428c60a45e Feature: Markdown link: VimwikiTOC supports multiple heading with same name (Issue: #968, 666, #664)
Anchor can be suffixed with -1 -2 according to the heading number (in
file) user want to reach.
Implemented with a dictionary for caching anchor names (without sufix)
2020-08-02 23:28:18 -04:00
Tinmarino
a27940a394 Feature: Markdown anchor normalize and unormalize (Issue #664)
Add normalize anchor and unnormalize to get markdown anchor github
compliant. For respectively follow_link and VimwikiTOC

TODO: Treat the potential -12 suffix in anchor-links: ex:
[got to second link](same-link-2)
2020-08-02 22:05:37 -04:00
Tinmarino
1b16720b7b Refactor: Syntax highlighting typeface: match -> region: (Issues #847, #640)
- Less code, Easyer to maintain, to add a markup language
- Faster to load, and to highlight
- Support multiline tags: #847
- Support nested tags
- Support intraword tags: this<b>bold</b>type #640
2020-08-02 03:57:22 -04:00
Tinmarino
5408d74b35 Syntax: Html support nested, concealable tag and faster
Use of syntax region => clearer, faster
2020-08-01 22:40:06 -04:00
Chip Senkbeil
6dff2c60a5 Add multiline comment support via %%+ and +%% 2020-08-01 18:18:11 -04:00
Chip Senkbeil
321e518fdb Replace VimwikiListChangeLevel references in doc with VimwikiListChangeLvl 2020-07-31 07:54:16 -04:00
Aditya Harit
7f8c4b5669
Fix: wrong html link conversion in windows (PR #945) 2020-07-30 19:31:55 -04:00
Tinmarino
97e02897f4 Refactor: Vars: Make vimwiki_list_ignore_newline wiki local (Issue #894)
Also: vimwiki_text_ignore_newline
2020-07-30 18:48:15 -04:00
Tinmarino
787e95b910 Refactor: Vars: Make vimwiki_toc_header wiki local
Also: vimwiki_toc_header_level, vimwiki_toc_link_format
2020-07-30 18:48:15 -04:00
Tinmarino
5651e744a6 Test: Fix vader_setup dep from 946 2020-07-30 18:47:23 -04:00
BirgerNi
0a5a33af19
Feature: Add option g:vimwiki_commentstring to disable vimwiki commentstring (PR #946 from @BirgerNi ) 2020-07-30 18:04:43 -04:00
Tinmarino
66a294d76f Test: Fix not understood frooze
Found by dichotomy, related to :file commmand and filename cannto be
writen. bug in run_test.sh but not in custom Vader
2020-07-30 01:10:36 -04:00
Tinmarino
355c1f76b0 Feature: Follow links: Allow hyphens and case-insensitive (PR #840 from @bratekarate)
Brief: Permits:

```
[Link to heading](#heading-example)
```

Issue: Feature Request: Support GFM anchor links inside wiki files #831
Original PR: Allow hyphens instead of spaces and search case-insensitive in jump_to_anchor function #840
Author: @bratekarate (implementation) @tinmarino (test)

Related: #666
2020-07-30 00:45:28 -04:00
Tinmarino
2332dc1514 Refactor: Test & Doc: Remove test/vader_include and move DesignNotes to doc
- vader_include is declareing functions -> faster to load (parse) once in
vimrc
- DesignNotes is doc so goes to doc
2020-07-29 23:29:03 -04:00