Commit Graph

88 Commits

Author SHA1 Message Date
865b402c06 Travis: Fix vint error propagation 2020-06-16 14:48:15 -04:00
43951e5851 Clean & Fix: cycle_bullets bug not defined key in dic: #911 2020-06-16 13:46:56 -04:00
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
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
5e564bb10d Comment: code and robustify 2020-06-04 17:29:26 -04:00
ac4d0a1d46 Allow to configure bullet points & status indicators per wiki (#889)
* Allow the bullet point characters of lists to be configures by the wiki option `bullet_types`. This allows to use other/additional characters for the bullets of lists – including unicode-chars like '→' or '•'. The default values depends on the chooses syntax.
* Allow to configure `vimwiki-listsyms` and `vimwiki-listsym_rejected` on per wiki basis.
* Fix a test for mediawiki syntax
2020-06-04 18:33:12 +02:00
1a4e1ed1ae Stylistic changes to pass vint tests.
Two non-stylistic errors were also fixed:
  1. Removed duplicate function with invalid argument usage
  2. Added missing quotes to a function call argument
2019-12-20 20:41:03 -07:00
a42cd58636 Don't insert marker character with o or O within a code block.
Previously if a code block was part of a list and o or O was used a new
list marker would be inserted. Also moved the is_codeblock check
function to utils file for use elsewhere.
2019-10-16 22:27:26 -06:00
1f85a3c855 Merge pull request #735 from simias/fix-407
Fix off-by-one error in get_next_line and get_prev_line
2019-10-15 12:15:14 -06:00
a17a9826bd Fix 'VimwikiReturn 3 5' behavior within code blocks.
Previously a new list marker would get added when working within a code
block that was part of a list. This change excludes code blocks from
list marker creation.
2019-08-23 14:42:07 -06:00
5ce7c14a3d Properly handle lists with hard wraps. Fixes #443.
This change modifies the behavior of VimwikiReturn to not insert a new
list marker if not within a list. Mostly useful when mapping <CR> to
VimwikiReturn 3 5 or similar. The behavior of 'o' was also modified to
properly insert a marker in a list with hard line wraps.
2019-08-22 05:52:54 -06:00
dcd68a6781 Fix off-by-one error in get_next_line and get_prev_line
The functions stopped at the end/start block marker (respectively)
instead of returning the following line. This caused issues when the
function was subsequently called in markdown mode since the start and
end block markers are the same.

This fixes #407
2019-07-31 17:56:08 +01:00
fbec80b7d9 Remove control characters. Fixes #598 2019-07-17 07:15:06 -06:00
cf8a16c5c7 Fix list folding bug (PR #705)
Closes #680
2019-05-11 14:01:45 -06:00
6257c8fa54 Revert "Allow to specify additional chars for lists"
This reverts commit 75819ca23a.
2019-01-17 21:57:42 +01:00
54e064f5c4 Revert "Fix bug"
This reverts commit 2346b7e299.
2019-01-17 21:57:28 +01:00
2346b7e299 Fix bug 2019-01-04 01:19:26 +01:00
75819ca23a Allow to specify additional chars for lists
See also #390 and #479 for earlier attempts
2019-01-03 21:02:21 +01:00
a72c14da1c More reasonable behavior for [-] and [X] list items
A parent [-] list item should have only [-] items as children.
2018-12-08 21:13:04 +01:00
c398f5cd81 Remove code duplicate 2018-12-08 21:06:30 +01:00
fa36bf3838 Don't check a [-] list item when its parent is [X] checked 2018-11-30 17:02:38 +01:00
2fb0e17adb glx on a list item creates a checked checkbox
... instead of an unchecked one.
2018-11-17 20:07:48 +01:00
12349b8cb6 Remove duplicated code 2018-11-17 20:07:09 +01:00
c1dbf90c29 Remove foldmarkers; general reformatting 2018-04-20 07:03:53 +02:00
9b5e4b445a Revert previous changes 2018-04-04 16:54:41 +02:00
5ad702cce6 Revert 89d28a7
This was committed by accident. Since 53745e8 had to be done by machine
this it not a real revert, but a redo of 53745e8. Due to the matter of
53745e8 it's slightly different.
2018-04-04 03:31:54 +02:00
53745e89e0 Fix newlineformat (issue #465)
The file contained carriage return characters leading to issues on some
systems. Removing them all should solve this.
2018-04-04 03:00:55 +02:00
89d28a72c5 Merge branch 'beta' into dev 2018-04-04 02:27:27 +02:00
b016eab91a Set 'tw' to 99 in all source files. We're not in the middle ages anymore. 2018-02-21 07:11:51 +01:00
f8ee21aa64 Merge branch 'refactor-internal-state-handling' into dev
Conflicts:
	autoload/vimwiki/base.vim
	autoload/vimwiki/diary.vim
	autoload/vimwiki/html.vim
	autoload/vimwiki/lst.vim
	autoload/vimwiki/markdown_base.vim
	doc/vimwiki.txt
	ftplugin/vimwiki.vim
	plugin/vimwiki.vim
	syntax/vimwiki.vim
	syntax/vimwiki_default.vim
	syntax/vimwiki_markdown.vim
	syntax/vimwiki_media.vim
2018-02-19 17:56:17 +01:00
1e858b50cb Cherry-pick the changes from dev -- part7 2018-02-19 07:07:22 +01:00
f60993249a Cherry-pick the changes from dev -- part5 2018-02-17 21:05:06 +01:00
19f398c73e Cherry-pick the changes from dev -- part 1 2018-02-16 07:26:42 +01:00
d4240083f7 Merge pull request #3 from Nudin/individualli
Allow to specify additional chars for lists
2017-09-16 17:09:41 +02:00
41e653718e Allow to specify additional chars for lists 2017-09-16 16:30:22 +02:00
6b9df766bb Remove duplicated code 2017-08-05 16:45:35 +02:00
f888773767 New feature reject a item form todo-list
Based on patches of davidlmontgomery.
2017-08-05 16:45:35 +02:00
7fe98bd20c Clean up code by reusing code 2017-07-15 15:48:47 +02:00
20afe48edd Add comment & binding for in-/decrease Todo-status 2017-07-15 15:48:47 +02:00
d5ed58f763 Fix a few regression bugs
Ref #256
Fix #301
2017-02-16 21:54:10 +01:00
c857be2f87 Allow g:vimwiki_listsyms be larger than 5 elements (Issue #275) (#279)
* Allow g:vimwiki_listsyms to be of arbitrary size

* Update documentation

* Add support for arbitrary size listsyms to vimwikihtml
2017-01-22 20:16:10 +01:00
1806d3edfa Start refactoring the rest -- part 5
Ref #256
2017-01-07 21:51:15 +01:00
7c98ce3934 Start refactoring the rest -- part 2
Ref #256
2016-12-28 22:17:08 +01:00
250fd3c47b Use new access functions for wiki-local variables -- part 5
Ref #256
2016-12-23 20:05:53 +01:00
6221861957 Use new access functions for wiki-local variables -- part 1
Ref #256
2016-12-22 18:16:05 +01:00
49bdf7fa47 Use new access functions for global variables -- part 2
Ref #256
2016-12-21 21:28:48 +01:00
4bd0690a52 Simplify some regexes 2016-03-18 15:16:59 +01:00
8d7d568214 Clean up all file headers
- remove author names. There's git blame for this job
- change home from code.google to github
- add short descriptions
2015-02-23 12:10:42 +01:00
e4de62b7d5 turn all =~ into =~# or =~?; !~ analogically 2015-02-09 20:58:05 +01:00
6716ba709f turn all != into !=# or !=? when comparing strings 2015-02-09 20:24:18 +01:00