Commit Graph

47 Commits

Author SHA1 Message Date
Eric Taylor
61960a9ae3 added N and W prority 2021-06-14 07:29:09 -07:00
David Beniamine
ae75dd6e62 Fix sort with symbol of more than 1 letter 2020-12-13 12:13:36 +01:00
Manu Hernandez
5585652ca6 Fix generation of [Dd]one-[Td]oday.txt files 2020-03-12 10:25:23 +00:00
David Beniamine
1a4d977cac Fix #37 : remove mark 2019-03-07 16:40:24 +01:00
David Beniamine
d51562a4c1 Fix #33 2019-02-11 11:33:30 +01:00
David Beniamine
9d1443b663 Silence all sorts 2019-02-10 18:29:59 +01:00
Risto Saarelma
00ecbeb8b7 Add setting for dropping priority metadata
The default behavior of todo.txt is to add priority metadata to done
items with priority tags so that the priority can be restored when the
item is marked as undone. If you want to have cleaner done items and
just remove the priority information when the item is set as done, set

    let g:TodoTxtStripDoneItemPriority=1
2019-02-10 18:16:27 +01:00
David Beniamine
a2090399fb Keep cursor pos on sorting see #33 2019-01-23 11:00:28 +01:00
David Beniamine
93480dd2c7 Save "/ buffer, fix #35 2018-12-23 16:49:16 +01:00
David Beniamine
259125d9ef Move tasks without priority before done on sort
Closes #32
2018-05-25 18:08:55 +02: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
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
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
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
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
David Beniamine
6d1d2d035a Do not consider done tasks when sorting by due date 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
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
David Karwowski
303ab65237 priorities at top, x at bottom 2016-09-28 12:31:37 -04:00
David Beniamine
f3c5e7b892 Included Guilherme Victal works on overduedate
See https://github.com/freitass/todo.txt-vim/pull/45
2016-05-14 12:03:55 +02:00
David Beniamine
a21fd1198c Fix missing items in completion
FIX: This commit fix dbeniamine/todo.txt-vim#7 some the last completion item
was not added to the completion list
CHG: This commit also provide a small refactor of todo#Complete
2016-02-09 22:31:00 +01:00
David Beniamine
a03d01e58e Get linescount in a more conventional way
This should solve issue #5 see
https://github.com/dbeniamine/todo.txt-vim/issues/5
2015-12-18 10:17:26 +01:00
David Beniamine
81c2772905 Add debug info in hierarchical sort
ADD: Debug info needed for solving issue #5
FIX: Incomplete group detection in hierarchical sort (should not impact
    issue #5)
2015-12-17 23:23:10 +01:00
David Beniamine
45bfb325ae FIX getcurpos incompatibility with old versions
It seems that getcurpos() (used on PrioritizeAdd) appeared on vim 7.4.313
therefore using it was causing troubles to some users ...
2015-12-08 10:51:21 +01:00
David Beniamine
081d9d2e3a Merge branch 'fix_getcurpos_missing' of https://github.com/citec/todo.txt-vim into citec-fix_getcurpos_missing 2015-12-08 10:41:53 +01:00
David Beniamine
41a75a8f50 FIX issue #2
FIX: hasmapto was use wrongly, there is now a setting to forbid todo-txt.vim to set
mappings.
FIX: There was a bug and MarkAllAsDone
2015-10-25 01:57:29 -02:00
Jaime Alberto Sanchez Hidalgo
cc281c47eb FIX getcurpos invalid expression 2015-10-20 08:43:13 -02:00
David Beniamine
644b6d6628 Cancel tasks with <localleader>c 2015-09-16 17:02:42 +02:00
David Beniamine
f9715af4a4 move hierarchical sort to auto start
Note: because of this, TodoComplete is now known as todo#Complete, you might
need to update your vimrc.
2015-08-22 18:39:59 +02:00