mirror of
https://github.com/freitass/todo.txt-vim.git
synced 2025-11-17 06:13:38 -05:00
Added shortcut to mark all tasks as done
This commit is contained in:
@@ -31,6 +31,10 @@ function! TodoTxtMarkAsDone()
|
||||
call TodoTxtPrependDate()
|
||||
normal! Ix
|
||||
endfunction
|
||||
|
||||
function! TodoTxtMarkAllAsDone()
|
||||
:g!/^x /TodoTxtMarkAsDone()
|
||||
endfunction
|
||||
|
||||
" Mappings {{{1
|
||||
" Sort tasks {{{2
|
||||
@@ -59,6 +63,11 @@ if !hasmapto("<leader>D",'v')
|
||||
if !hasmapto("<leader>D",'v')
|
||||
vnoremap <script> <silent> <buffer> <leader>D :call TodoTxtMarkAsDone()<CR>
|
||||
endif
|
||||
|
||||
" Mark all done {{{2
|
||||
if !hasmapto("DD",'n')
|
||||
nnoremap <script> <silent> <buffer> DD :call TodoTxtMarkAllAsDone()<CR>
|
||||
endif
|
||||
|
||||
" Folding {{{1
|
||||
" Options {{{2
|
||||
|
||||
Reference in New Issue
Block a user