This commit is contained in:
Leandro Freitas
2015-04-17 08:38:08 -03:00
parent 1f8b706d8e
commit e071156b8d
3 changed files with 5 additions and 5 deletions

View File

@@ -79,7 +79,7 @@ function! todo#txt#sort_by_project() range
execute a:firstline . "," . a:lastline . "sort /\\(^\\| \\)\\zs+[^[:blank:]]\\+/ r"
endfunction
function! todo#txt#sort_by_date() range
function! todo#txt#sort_by_date() range
execute a:firstline . "," . a:lastline . "sort /\\d\\{2,4\\}-\\d\\{2\\}-\\d\\{2\\}/ r"
endfunction

View File

@@ -1,5 +1,5 @@
# lorem_ipsum
(B) 2013-03-15 2015-03-17
(A) 2012-04-16 2015-04-16
(B) 2013-03-16 2013-03-10
(B) 2012-04-16 2015-04-16
(A) 2013-03-16 2013-03-10
# end_lorem_ipsum

View File

@@ -5,9 +5,9 @@ let s:tc = unittest#testcase#new('Sort Date',
let s:LEADER = mapleader
let s:SORTED_TASKS = [
\ '(B) 2013-03-16 2013-03-10',
\ '(B) 2012-04-16 2015-04-16',
\ '(B) 2013-03-15 2015-03-17',
\ '(A) 2012-04-16 2015-04-16',
\ '(A) 2013-03-16 2013-03-10',
\ ]
function! s:tc.test_sort_by_context()