File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -257,8 +257,8 @@ Changelog
257257#### 0.7.0
258258
259259* Added automatic date insertion feature
260- * Items list are made markdown compatible
261260* Added mappings for fast increasing/decreasing indent
261+ * Items list are made markdown compatible (old files updated automatically on load)
262262
263263Credits
264264-------
Original file line number Diff line number Diff line change 1- *vim-todo-lists.txt* Version 0.6 .0
1+ *vim-todo-lists.txt* Version 0.7 .0
22*vim-todo-lists*
33
44Plugin for TODO lists management.
@@ -291,8 +291,9 @@ SOFTWARE.
2912910.7.0
292292
293293* Added automatic date insertion feature
294- * Items list are made markdown compatible
295294* Added mappings for fast increasing/decreasing indent
295+ * Items list are made markdown compatible (old files updated automatically on
296+ load)
296297
297298==============================================================================
2982998. Credits *VimTodoListsCredits*
Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ function! VimTodoListsInit()
5050 call VimTodoListsSetItemMode ()
5151 endif
5252
53+ call VimTodoListsMigrate ()
54+
5355endfunction
5456
5557
@@ -423,6 +425,13 @@ function! VimTodoListsDecreaseIndent()
423425 normal ! <<
424426endfunction
425427
428+ " Migrates file to new format
429+ function ! VimTodoListsMigrate ()
430+ normal ! mz
431+ silent ! execute ' :%s/^\(\s*\)\(\[.\]\)/\1- \2/'
432+ normal ! 'z
433+ endfunction
434+
426435" Plugin startup code
427436if ! exists (' g:vimtodolists_plugin' )
428437 let g: vimtodolists_plugin = 1
You can’t perform that action at this time.
0 commit comments