Commit Graph

71 Commits

Author SHA1 Message Date
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
Tinmarino
96232c0340 Test for html table convertion with header (Issue #941) 2020-07-29 21:18:36 -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
e785c6f5b4 Test: travis run vint in an other job => faster 2020-07-29 00:36:44 -04:00
Tinmarino
b124c9b1d8 Test: VimwikiDiaryGenerateLinks with wiki syntax (Issue: #921) 2020-07-27 14:48:05 -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
d5964f0c84 Feature: blockquote (> ) better joining (J) and hard wrapping (Issue #915)
Wrap: autoadd a new `> ` on new create lines with `setlocal comments+=n:>`
Join: autoremove the inter `> ` with  `setlocal formatoptions+=j`
2020-07-26 19:01:04 -04:00
Tinmarino
8e2eab2e55 Test: #473 Convert Html Linux [[local:C:/Users/somebody/d/e/f/music.mp3]] 2020-07-26 00:51:05 -04:00
Tinmarino
0a9b11fb0f Test: Add local testing (no docker need), working on windows
Problem: User do not want to install docker to test
        and docker is not set for windows already
Solution: Get the script to make the tests locally with current os and
        vim

Log of workflow (6h):
=====================

Test: cloning only last 10 Vader commits locally [tinwin]
Test: run_bash fix local copies and prettify/robustify [tinwin]
Test: Lint tests and fix err treatment in run_bash [Tinmarino]
Test; Windows: Restore the bug that I appended on Linux OLD-PATH env deps [Tinmarino]
Test: bash script first success on Windows (only the script not the tests) [tinwin]
Test: Dirty Backup [tinwin]
2020-07-26 00:00:23 -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
81c67f97e4 Test: 1/Fix some interdependencies 2/replace -o -> -f
1/ Fix interdependencies: any test can run alone
2/ Replace command line -o by -f
3/ As usual makesome formating, don't hate me if merge conflicting ..
2020-07-25 02:05:59 -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
edf562fab0 Test: VimwikiTableMoveColumnLeft and some friends
Test: VimwikiTableMoveColumnLeft (Note:cannot test <M-Left> map : not triggered)
Test: issue #949 <Enter> create link bug with Chinese characters
Test: VimwikiGoto with ,wn
Test: Table left align
Prettify: modeline of contributing
2020-07-24 00:16:09 -04:00
Reiner Herrmann
ca84701c83 Add Vader tests for RSS feed generation 2020-07-22 10:06:30 -04:00
Rafael Castillo
e006da5aa0 Add test for arrow 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
068a26acec Fix link extension removed 2020-07-21 19:36:14 -04:00
Tinmarino
19bfe93ef3 Test: Table should not change tw 2020-07-21 15:10:27 -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
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
Michael F. Schönitzer
a9f21c6d4a
Functions to remove all todo items that are done (#906)
Add function VimwikiRemoveDone that will delete lines with todo list items marked as done. Works on ranges as well as without range on the current list.

Co-authored-by: Tinmarino <tinmarino@gmail.com>
2020-06-08 14:31:35 +02:00
Robert Günzler
61093f4f2a
Feature: Add option to automatically cycle bullet chars (#907)
When the syntax local config `cycle_bullets` is set (currently only
markdown has it by default) the indent functions will cycle through the
characters defined in `bullet_types` based on the level of indentation.

Signed-off-by: Robert Günzler <r@gnzler.io>
2020-06-07 19:03:10 -04:00
Tinmarino
1617d4b654 Test: add issue non-regession and todo list 2020-06-04 17:29:47 -04:00
Tinmarino
285f1628c2 Test: Fix: exit status (was always 0) 2020-05-30 18:08:23 -04:00
Michael F. Schönitzer
c9e6afe856 Prepare for release 2.5
- Format Changelog
- Update version number in docs
- Update list of Contributers
- Update version number in tests
- Update link in README
2020-05-26 23:09:58 +02:00
Michael F. Schönitzer
1eb74dcf2f
Rename three commands, deprecate their old names (#887)
The following commands have been renamed to better describe their
function and avoid confusion.
:VimwikiDeleteLink → :VimwikiDeletePage
:VimwikiRenameLink → :VimwikiRenamePage
:VimwikiGenerateTags → :VimwikiGenerateTagLinks (was already renamed in 3b5537f)

Calling the old commands still works but displays a warning message.
2020-05-24 23:49:28 +02:00
Michael F. Schönitzer
306efbcdf3 Fix test for mediawiki syntax 2020-05-23 01:23:28 +02:00
Tinmarino
e83173c7c8 Test remove commented nvim from Dockerfile 2020-05-20 14:41:07 -04:00
Tinmarino
d86685f350 Test: comment non working -> All tests green 2020-05-13 11:35:22 -04:00
Tinmarino
f9b9b5a768 Test: plaintext html magic 2020-04-18 14:10:05 -04:00
Rane Brown
75c557bcbc Disable syntax for indented code blocks.
The behavior within lists is not correct.
2020-01-08 06:03:40 -07:00
Tinmarino
d9412218e3 Fix relative paths for VimwikiRenameLink. Merge PR #787.
Fixes #90 

__Problem__: VimwikiRenameLink does not rename dir1/toto url in dir2/tata
because the dirs (dir2 and .) were well crossed but badly inspected.
__Solution__: `blob(.ext*)` -> `glob(**/*.ext)` + find the relative URL

* Fasten: VimwikiRenameLink goes faster with cache
More: To compute old_url regex, use a cache dict because it is the same
for files in the same directories

* Util DeleteHiddenBuffer -> do not delete Vader buffer

* Test: Prettify: Util: teardown delete defined function

* Remove unnecessary trailing spaces
Note: list_VimwikiReturn.vader has some necessary trailing spaces
2020-01-04 21:21:52 -07:00
Rane Brown
3ec0c9cd91 Add markdown syntax support for indented code blocks. 2020-01-03 07:10:02 -07:00
Rane Brown
59e1229da6 Update call to VimwikiGenerateTagLinks 2020-01-03 07:08:54 -07:00
Rane Brown
5cdeb9a682 Improve markdown syntax for fenced code blocks. Closes #764 2020-01-01 10:58:56 -07:00
Rane Brown
b4e0f738a3 Allow markdown syntax to have tags at top of file.
Previously tags that did not fall under a header caused errors because
the generation code expected an anchor.

Update tags test case.

Closes #790
2019-12-30 10:09:04 -07:00
Rane Brown
719036b011 Add ability to select individual tests to run. 2019-12-30 05:58:20 -07:00
Rane Brown
19f913429f Don't overwrite user setting of list_margin.
Closes #789
2019-12-23 13:35:31 -07:00
Rane Brown
e66464cda0 Remove ft=conf -> Vader is a ft 2019-12-21 09:11:17 -07:00
Rane Brown
f18bb6bc57 Add function to print a command output to the buffer 2019-12-21 09:10:39 -07:00
Rane Brown
7ad0ad36dc Set default list_margin=0 for markdown 2019-12-21 09:09:16 -07:00
Rane Brown
2526547db2 Cleanup, add link to vim-testbed on DockerHub 2019-12-20 20:40:43 -07:00