Commit Graph

265 Commits

Author SHA1 Message Date
David Beniamine
070e68721b Github warning 2018-06-05 10:38:59 +02:00
David Beniamine
259125d9ef Move tasks without priority before done on sort
Closes #32
2018-05-25 18:08:55 +02:00
David Beniamine
2483961aaf Merge branch 'master' of https://github.com/fretep/todo.txt-vim 2018-04-19 23:45:48 +02:00
David Beniamine
7b0262ae84 Do not override fold_char and use fold_char x for tests 2018-04-19 23:45:09 +02:00
fretep
f23b1c2cac Update mappings to be more consistent
in use of map arguments, and also move the <Plug> mappings outside of
the Todo_txt_do_not_map block
2018-04-19 21:37:53 +10:00
fretep
aa5a702057 Use setlocal for nrformats 2018-04-19 21:16:07 +10:00
David Beniamine
7d70e30aae Add Possibility to fold on context or project
Closes #30

Folds now works the following way:

+ At initialisation, if all completed tasks are at the end, folds are
based on completed tasks only, else they are based on context
+ After a hierarchichal sort, folds are set by the first level between project and context
+ After a "normal" sort, folds are set only on completed tasks (as
before)

This work is greatly inspired from the snipped provided by @arecarn
2018-04-18 17:55:15 +02:00
fretep
d6256bcfe3 Add support for recurring tasks ("rec:" keyword) 2017-10-20 22:48:50 +11:00
fretep
f982b9c581 Merge branch 'master' of https://github.com/dbeniamine/todo.txt-vim 2017-10-14 18:43:19 +11:00
fretep
5f2497d3fa Adding postpone due date mapping and functions 2017-10-14 18:27:21 +11:00
David Beniamine
ea7eb42d62 Merge branch 'master' of https://github.com/fretep/todo.txt-vim 2017-10-05 11:43:47 +02:00
fretep
678c3b8680 Bug fix in todo#todo#GetDateRegexForPastDates
For dates in October.
2017-10-01 12:07:07 +11:00
David Beniamine
0744fdf45b Merge branch 'master' of https://github.com/fretep/todo.txt-vim 2017-09-27 19:05:18 +02:00
fretep
7160425fa8 Prefix creation date when opening a new line 2017-09-27 22:56:17 +10:00
David Beniamine
8cb1a76eed Removed useless files from original version 2017-09-26 14:59:12 +02:00
David Beniamine
87f94ef7bd Removed redundant test 2017-09-26 14:58:15 +02:00
David Beniamine
25fa5dcf15 Fix priority on canceleld tasks + tests 2017-09-26 14:57:48 +02:00
fretep
f35bcabcea Correct a bug in todo#Complete
where the entire lines were being shown as related
2017-09-24 23:02:26 +10:00
fretep
21908548d4 Fix exception in todo#MarkAsDone and todo#UnMarkAsDone 2017-09-22 23:33:18 +10:00
fretep
6777558646 Fix case sensitivity folding complete tasks 2017-09-20 15:19:45 +02:00
David Beniamine
ebdde99ac4 Fix #21
Better handling of priority on done tasks
Also added <localleader>ff to fix format. this will remove leading
whitespaces and convert old (wrong) done tasks to the correct format
2017-09-20 13:28:07 +02:00
David Beniamine
c6e472c048 Fix #23 2017-09-20 12:43:22 +02:00
fretep
c8092640df Fix for <Leader>x and other minor issues
Fixed a bug in <Leader>x (todo#PrependDate) introduced last commit.
Fixed case sensitivity bug in todo#ToggleMarkAsDone() and todo#UnMarkAsDone()
Fixed errors being reported for repeat#set if vim-repeat plugin is not installed.
Fixed modeline in .vim files to work (only works on first/last 5 lines of file), and made the modelines consistent across all files.
New unit tests for todo#ToggleMarkAsDone()
Minor fixes for README.md and man page
Fix anchoring of RegExp in todo#ToggleMarkAsDone
Fixed a bug in overdue highlighting that resulted in the current date being matched on round dates like the 20th and 30th.
Added more unit tests for overdue date highlighting.
Corrected RegExp anchoring on today date highlighting.
Added a few bash scripts to make running unit tests easier and more reliable, including testing with ignorecase user preference set.
2017-09-20 01:32:59 +10:00
David Beniamine
c2ad4bc58b make sort case insensitive 2017-09-15 13:02:57 +02:00
David Beniamine
68e407af22 Merge branch 'vadertests' of https://github.com/fretep/todo.txt-vim 2017-09-15 12:27:09 +02:00
David Beniamine
22fb99260e fix bad indent 2017-09-15 12:27:01 +02:00
fretep
f39504bea8 Added myself to author line 2017-09-15 18:44:08 +10:00
fretep
08d3ed88d9 Major refactor to be cleaner and test more cases 2017-09-15 18:36:50 +10:00
Peter
4119ff026f Merge branch 'master' into SortDueFixes 2017-09-14 01:18:42 +10:00
fretep
ff533b85f5 Bug fixes for case sensitivity and cursor positioning 2017-09-14 01:06:59 +10:00
David Beniamine
774d4da4e9 Conforming to todo rules
Priorities must be uppercase
Completed task marker is lowercase
2017-09-12 16:38:41 +02:00
fretep
0ed7d4848e Fix sorting bugs with 'due:' at the start of the line, and properly handle completed tasks with lastdue and notoverdue post sort cursor preferences 2017-09-12 23:50:56 +10:00
David Beniamine
7bebc01020 Fix issue #17 2017-09-12 15:44:25 +02:00
fretep
f5050663c6 Added tests and notes for issue #17 and #18 2017-09-12 21:49:38 +10:00
fretep
b8fa774606 Merge branch 'master' into vadertests 2017-09-12 20:32:41 +10:00
David Beniamine
35810c388d Micro release v0.8.1 2017-09-11 13:34:49 +02:00
fretep
311761e327 Added TodoDueToday syntax highlight 2017-09-11 13:32:07 +02:00
David Beniamine
71505569c0 Vestion 0.8
Fix and close #14 and #15
Merge PR#13 and PR#16
v0.8
2017-09-10 12:13:26 +02:00
David Beniamine
6d1d2d035a Do not consider done tasks when sorting by due date 2017-09-10 12:13:25 +02:00
David Beniamine
491c3c7fba Remove python dependency 2017-09-10 12:13:25 +02:00
fretep
70b05c2c76 Modified SortDue() to fix error if every line of the todo.txt had a
due:date specified, also allow setting a global variable to specify
the line the cursor should be place on after the sort
2017-09-10 12:13:25 +02:00
fretep
30f112a8ac Vader tests 2017-09-09 21:14:27 +10:00
fretep
a778ef5590 Fix case sensitivity with "due:" in overdue date highlighting 2017-09-09 20:35:44 +10:00
fretep
03fe8bb167 Added native vim function to highlight overdue dates 2017-09-09 13:22:07 +10:00
David Beniamine
aa618973e2 Do not highlight overdue when marked done 2017-09-05 10:48:06 +02:00
David Beniamine
7b9c9815a4 Integrating sietse's work, version 0.7.6 2017-08-15 12:22:21 +02:00
Sietse Brouwer
57d45200c8 Enable vim-repeat for Done and Cancel 2017-08-08 11:09:22 +02:00
Rene Vergara
484c12771e Improve todo#PrependDate to follow format
Add logic to place the completion date after the priority, if it exists,
when completing a task.
2017-04-05 11:15:59 -05:00
David Beniamine
f77215ca80 Fix issue #11
Complete function assumed that a line started with x <date> or a
priority which is not necessarily true, thus some lines where ignored
from completion.
2017-03-30 18:57:18 +02:00
David Beniamine
849a7d5f61 Better way to put done at the end
+ Limit side effects
+ Sort done entries at the end
+ Work fine also without done entries
2016-11-25 11:26:44 +01:00