diff options
| author | Teddy Wing | 2020-03-22 00:14:21 +0100 | 
|---|---|---|
| committer | Teddy Wing | 2020-03-22 00:14:21 +0100 | 
| commit | ed64480941ec98a26da0a162814b3ccdffaf1c34 (patch) | |
| tree | 9cb41f061bed04d84a99eed02a958693844e21c9 /autoload | |
| parent | 4d0c7d92b0a415b2c59caddfde94248117fd45cc (diff) | |
| parent | 36e9ea77e0bd3ac4c572b8b8b80f6357ebdf4398 (diff) | |
| download | vim-twodo-ed64480941ec98a26da0a162814b3ccdffaf1c34.tar.bz2 | |
Merge branch 'commands-should-be-repeatable'
Diffstat (limited to 'autoload')
| -rw-r--r-- | autoload/todo.vim | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/autoload/todo.vim b/autoload/todo.vim index 8cfa986..070d3f5 100644 --- a/autoload/todo.vim +++ b/autoload/todo.vim @@ -4,6 +4,8 @@ function! todo#MarkComplete()  	keeppatterns s/\v^(\s*)[-_!xS] /\1v /  	call winrestview(view) + +	silent! call repeat#set("\<Plug>TwodoMarkComplete", v:count)  endfunction @@ -13,6 +15,8 @@ function! todo#MarkDeleted()  	keeppatterns s/\v^(\s*)[-_!vS] /\1x /  	call winrestview(view) + +	silent! call repeat#set("\<Plug>TwodoMarkDeleted", v:count)  endfunction @@ -22,6 +26,8 @@ function! todo#MarkPartiallyCompleted()  	keeppatterns s/\v^(\s*)[-_!xv] /\1S /  	call winrestview(view) + +	silent! call repeat#set("\<Plug>TwodoMarkPartiallyCompleted", v:count)  endfunction @@ -31,6 +37,8 @@ function! todo#RemoveOldTodos()  	keeppatterns g/^\s*[vx] /d  	call winrestview(view) + +	silent! call repeat#set("\<Plug>TwodoRemoveOldTodos", v:count)  endfunction @@ -49,6 +57,8 @@ function! todo#Escalate()  	endif  	call setline(line('.'), todo) + +	silent! call repeat#set("\<Plug>TwodoEscalate", v:count)  endfunction @@ -67,4 +77,6 @@ function! todo#Descalate()  	endif  	call setline(line('.'), todo) + +	silent! call repeat#set("\<Plug>TwodoDescalate", v:count)  endfunction | 
