Commit Graph

526 Commits

Author SHA1 Message Date
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
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
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
Chip Senkbeil
6dff2c60a5 Add multiline comment support via %%+ and +%% 2020-08-01 18:18:11 -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
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
Gaurang Kher
f107557463
#940: Render header inside thead element if table has header (#941) 2020-07-29 15:36:33 -04:00
Ryan Winograd
7a4ad2ed95 Fix :VimwikiNextTask
Use the correct function for accessing 'rxListItemWithoutCB'.
`ac4d0a1d46` refactored access to vars and it appears this is one place
where `get_syntaxlocal` should have been renamed to `get_wikilocal` but
was accidentally skipped.
2020-07-29 15:26:33 -04:00
Tinmarino
369a64cdc8 Feature: VimwikiRenameFile 1/ to other dir 2/ take argument (completable) (Issue #926) 2020-07-29 01:18:40 -04:00
Tinmarino
af08e34000 Fix: update_listing_in_buffer is clearing the buffer (Issue #921)
Problem:
        VimwikiGenerateTags and VimwikiDiaryGenerateLinks end up with empty wiki files
        when foldlevel=0 and g:vimwiki_folding='expr'

Solution:
        Set an initial foldlevel to 100 in update_listing in diary

Optionaly: Comment a little the big messy, geeky hack !
2020-07-27 01:35:49 -04:00
Tinmarino
d9d14cc3f7 Feature: Config: Normalize link so that user can choose [[]] or []() (Issue #892)
Main change:
        Create function: normalize_syntax_settings(syntax)

Problem:
        Some user prefer [[]] links more than []().
        As vimwiki know both of them, they should be able to choose
        without regex mastery and with tests

Solution:
        let g:vimwiki_syntax_variables.markdown.Link1 = vimwiki#vars#get_global('WikiLinkTemplate1')
2020-07-26 23:46:35 -04:00
Tinmarino
4672deb44e Config: make vimwiki_markdown_link_ext wikilocal 2020-07-26 23:46:18 -04:00
Tinmarino
c9ba53e204 Refractor: Path Add utility unixify #478
Basically unixify all before workingm then transofom in function os os

Util: Add function sort_len that a list of string according to the lenght of its content
Fix: VimwikiRenameLink doesn't update links in diary #90
Test: VimwikiRenameLink with nested directories
Prettify comments in autoload/path + remove antipattern
Define osxify function helper to solve windows Vs Unix : see #478
Path: remove useless temporary fix convertion before calling relpath (redundant) : see #478
Test: Fix typo
Path corrected (Thanks to test)
2020-07-25 03:51:02 -04:00
Tinmarino
ac38bb2f09 Refactor: normalize_link_v, creating u#get_selection (Fix #382)
* Less hacky selection handling: nomal command hack -> vimscript code
* Some prettifying, antipattern removal
2020-07-24 17:59:54 -04:00
Tinmarino
446776e00b Fix: Table imap <Tab> (error from new tipo on configurable mapping) 2020-07-24 00:16:02 -04:00
Tinmarino
f21245a843 Fix: html conversion error from markdown (#951)
From last html conversion refactoring
2020-07-24 00:14:28 -04:00
Reiner Herrmann
e3501dcdd0 Generate RSS feed for diary entries 2020-07-22 10:06:30 -04:00
Reiner Herrmann
0543b46ffd Refactor HTML conversion into separate function 2020-07-22 10:06:30 -04:00
Rafael Castillo
36e5455723 Fix blockquotes not stripping arrows 2020-07-22 00:41:36 -04:00
Rafael Castillo
12327c6f90 Adds email style quotes to signal blockquotes 2020-07-22 00:41:36 -04:00
Rajdeep
e3e841f335 Feature: Add handling of absolute path to vimwiki #811 from @justrajdeep
- update vimwiki link handling so that if using env variables it is resolved
- add [[//absolute_path]] to handle absolute path
- updated doc to reflect the changes
2020-07-22 00:25:58 -04:00
Tinmarino
8cf2789840 Prettify 2020-07-21 19:37:05 -04:00
Tinmarino
068a26acec Fix link extension removed 2020-07-21 19:36:14 -04:00
Tinmarino
667929d3f9 Prettify tbl.vim 2020-07-21 15:15:56 -04:00
Tinmarino
dfc5344d0c Fix: #891 Table Pressing <Enter> autosets tw<-0
Issue: Pressing <Enter> in insert mode in table breaks line wrapping #891
2020-07-21 15:13:58 -04:00
Tinmarino
1072f2a14e Lint, diary from last PR: ==? and '' 2020-07-21 13:24:42 -04:00
Jérémy Caldas
a3be479d5a
Add a diary frequency option (#884)
* Add diary_frequency parameter to wikis

* Create diary entries according to the frequency

* Update date validation

* Use timestamps, extract abstract yesterday and today as day-long periods

* Revert old changes

* Remove debug log

* Start the week any day

* Add monthly and yearly options

* Cleanup
2020-07-21 13:21:43 -04:00
Tinmarino
45b7515b88 Fix: VimwikiGenerateDiary with unreplaced __FileExtention__ 2020-07-21 13:12:18 -04:00
Tinmarino
75a9232fd5 Fix: #913: VimwikiGoto completion aafter <CR> [in input() prompt]
Issue #913:
        :VimwikiGoto tab completion only works when written in-line, not when called from \wn #913
        PR #785 adds completion to :VimwikiGoto, however it works only when you try to type the filename after the command, e.g.
2020-07-21 10:20:06 -04:00
Yigit Sever
ed3f1ad215 Allow weblinks to end with '<'
Fixes #908
2020-07-21 00:16:16 -04:00
Tinmarino
e1826702b7 Fix: Link substitution of __FileExtension__ #914 2020-06-16 17:47:40 -04:00
Tinmarino
865b402c06 Travis: Fix vint error propagation 2020-06-16 14:48:15 -04:00
Tinmarino
43951e5851 Clean & Fix: cycle_bullets bug not defined key in dic: #911 2020-06-16 13:46:56 -04:00