Skip to content

Commit cce78ca

Browse files
committed
Merge branch 'dev'
2 parents 3556beb + 08ca9a3 commit cce78ca

File tree

3 files changed

+37
-2
lines changed

3 files changed

+37
-2
lines changed

README.md

+15-2
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,21 @@ to be **parent** and the second to be **child**.
5252
```
5353

5454
###### Rules:
55-
* Changing state of the parent item changes the state of all children items accorndantly
55+
* Changing state of the parent item changes the state of all children items accordantly
5656
* If all children items are marked done, parent will also be marked as done
5757
* If parent is marked as done and one of the children changes state to not done
5858
parent will also be marked as not done
5959

60+
##### Items Highlighting
61+
62+
Items are highlighted in accordance to the following scheme:
63+
64+
```
65+
[ ] ! Important item (Underlined)
66+
[ ] Normal item (Normal)
67+
[X] Done item (Comment)
68+
```
69+
6070
##### Commands
6171

6272
* `:VimTodoListsCreateNewItemAbove` - creates a new item in a line above cursor
@@ -145,11 +155,14 @@ Changelog
145155
* Improves work with indentations of list items
146156
* Fixed the error when trying to navigate the buffer that doesn't contain items
147157

148-
149158
#### 0.4.0
150159

151160
* Added items hierarchy support
152161

162+
#### 0.5.0
163+
164+
* Added items highlighting
165+
153166
Credits
154167
-------
155168

after/syntax/todo.vim

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"Syntax commands ordering is important due to order of the matching
2+
syntax match vimTodoListsDone '^\s*\[X\].*'
3+
syntax match vimTodoListsNormal '^\s*\[ \]\s*.*'
4+
syntax match vimTodoListsImportant '^\s*\[ \]\s*!.*'
5+
6+
highlight link vimTodoListsDone Comment
7+
highlight link vimTodoListsNormal Normal
8+
highlight link vimTodoListsImportant Underlined

doc/vim-todo-lists.txt

+14
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,16 @@ Rules:
7878
* If parent is marked as done and one of the children changes state to not done
7979
parent will also be marked as not done
8080

81+
82+
Items Highlighting
83+
------------------
84+
85+
Items are highlighted in accordance to the following scheme:
86+
87+
[ ] ! Important item (Underlined)
88+
[ ] Normal item (Normal)
89+
[X] Done item (Comment)
90+
8191
Commands
8292
--------
8393
*:VimTodoListsCreateNewItemAbove* *:VimTodoListsCreateNewItemBelow*
@@ -182,6 +192,10 @@ SOFTWARE.
182192

183193
* Added items hierarchy support
184194

195+
0.5.0
196+
197+
* Added items highlighting
198+
185199
==============================================================================
186200
8. Credits *VimTodoListsCredits*
187201

0 commit comments

Comments
 (0)