Paul Beckingham
d890e05298
Merge branch '1.9.3' of tasktools.org:task into 1.9.3
2010-08-01 13:08:00 -04:00
Paul Beckingham
2f1c582d7d
Code Cleanup
...
- Relocated the Table::getCharLength() from Johannes to text.cpp/characters()
because it is a general-purpose function, and will be the start of the UTF8
conversion of all text.cpp code.
- Added unit tests for characters().
2010-08-01 13:05:53 -04:00
Cory Donnelly
471571e493
Unit Tests - UTF-8 characters in reports
...
- Added bug.455.t for Bug #455 - Text alignment in reports is broken when text
contains utf8 characters
2010-08-01 09:56:41 -04:00
Johannes Schlatow
6e1aa42d1a
Bug #455 - Text alignment in reports is broken when text contains utf8 characters
...
- Applied patch from Johannes.
- Also included extra calls to getCharLength in other parts of the code.
Signed-off-by: Paul Beckingham <paul@beckingham.net>
2010-08-01 09:30:42 -04:00
Johannes Schlatow
3939503377
Bug #453 - Priorities are sorted inconsistently (asc vs. desc)
...
- Patch to correct the sorting of priorities, which had a condition
flipped making the Table::descendingPriority consider a missing
priority to be 'higher' than 'H'.
2010-07-31 09:03:01 -04:00
Paul Beckingham
fecdb930d4
Enhancement (related to #452 )
...
- A task is now considered overdue if it is past the due date, not
due before today.
2010-07-30 22:54:55 -04:00
Paul Beckingham
d0db821298
Bug 452 - Need relative date value 'now' to fully support times
...
- Added 'now' as a relative date.
- Modified 'overdue' report to use 'now' instead of 'today' as the
distinction between due and overdue.
2010-07-30 22:50:20 -04:00
Paul Beckingham
1cf1e79e43
Merge branch '1.9.3' of tasktools.org:task into 1.9.3
2010-07-30 22:33:08 -04:00
Cory Donnelly
69c3ba6f59
Documentation
...
- Comment for getDueState() updated to reflect actual return values
2010-07-30 09:47:55 -04:00
Paul Beckingham
9cab648d8a
Merge branch 'sort' into 1.9.3
2010-07-29 14:50:54 -04:00
Paul Beckingham
2ef30b1183
Bug 449 - Inconsistent wait: attribute results
...
- Fixed bug #449 , so the wait: attribute can be applied to a task at any
time, not just on add.
- While searching for problems with the waiting status, noticed that
importCSV doesn't appear to set any tasks to pending status.
2010-07-28 23:22:59 -04:00
Paul Beckingham
4d266412ee
Unit Tests - Date
...
- Added unit tests for Date::operator-.
2010-07-28 19:58:32 -04:00
Paul Beckingham
e44c4ffb82
Unit Tests - Duration
...
- Added tests for Duration::negative.
2010-07-28 19:46:51 -04:00
Paul Beckingham
bef7b9b655
Merge branch '1.9.3' of tasktools.org:task into 1.9.3
2010-07-28 17:56:43 -04:00
Paul Beckingham
209a7b8cee
Unit Tests - wait
...
- Added unit tests to prove that the wait: attribute is working,
which it is not.
2010-07-28 17:54:11 -04:00
Paul Beckingham
3952765de0
Bug 445 - The command 'task h' should be ambiguous, yet works
...
- Fixed bug #445 , which caused task to not notice that the command 'h' is
ambiguous. This was caused by mistakenly first autoCompleting against
a set of alias names, during canonicalization, instead of autoCompleting
against the whole set of possible commands and aliases, then doing the
canonicalization. The order was reversed.
- Also populated list of all commands with alias names, so the above
could be corrected.
2010-07-28 17:50:47 -04:00
Paul Beckingham
e886f7635b
Enhancement
...
- When presenting lists of ambiguous command, attributes and modifiers
to the user, it is now a sorted list.
2010-07-28 17:47:58 -04:00
Federico Hernandez
76fa56d3fb
Merge branch '1.9.3' of tasktools.org:task into 1.9.3
2010-07-28 18:08:44 +02:00
Federico Hernandez
903b5b34d4
Feature #446 - start of {week, month, year}
...
- Bug fix for som and soy.
- Added synonyms soww and eoww for sow and eow.
- Added start/end of calendar week: socw and eocw.
2010-07-28 18:07:09 +02:00
Cory Donnelly
189fdaf9ac
Bug #444 - Interactive undo locks pending.data and doesn't give it up
...
- TDB::undo () now exits gracefully when a user declines to proceed with
the undo, ensuring context.tdb.unlock () is called
2010-07-28 10:18:34 -04:00
Federico Hernandez
96bd3ff8db
Feature #446 - start of {week, month, year}
...
- Added sow (depending on rc.weekstart), som and soy as possible
dates (similar to eow, eom and eoy).
2010-07-28 00:15:26 +02:00
Cory Donnelly
78edb61c4c
Bug #444 - Interactive undo locks pending.data and doesn't give it up
...
- flock() now uses LOCK_EX | LOCK_NB so it won't wait for the file lock
2010-07-26 14:02:37 -04:00
Paul Beckingham
7468a2d81d
Feature #43 - relative dates: +3d, -2w
...
- Now dates (due, wait, limit) are parsed first as Durations, and on
error reparsed as Date. When a Duration is found instead of a Date,
the Duration is added to the current date/time.
2010-07-25 22:11:25 -04:00
Paul Beckingham
123a46eef9
Enhancement/Fixes - Duration
...
- Reorganized Duration::valid and Duration::parse to use the same list
of supported constructs.
- Added missing copy constructor.
- Added missing ctor initializer list.
- Corrected handling of negative time_t values.
- Added support for more duration formats.
- Corrected autoComplete use.
- Added Duration::negative.
- Corrected unit test descriptions.
2010-07-25 22:05:02 -04:00
Paul Beckingham
cb4fe4fffb
Enhancement - Date::operator-
...
- Implemented Date::operator-, to allow subtractions of Durations.
2010-07-25 22:02:41 -04:00
Paul Beckingham
031c4c484d
Instrumentation
...
- Added timing measurement for table sorting.
- Added timing measurement for table composition.
2010-07-25 15:02:35 -04:00
Paul Beckingham
43266a825f
Feature #391 - legendary enhancement
...
- Added feature #391 , now the 'task color legend' command will show
samples of all the defined colors and color rules from your .taskrc
and theme.
2010-07-25 14:50:20 -04:00
Paul Beckingham
7dc55d831d
Code Reorganization
...
- Beginning to stub out the dependency helper functions in the new
file dependency.cpp.
2010-07-24 06:38:08 -07:00
Paul Beckingham
6f67c0093d
Code Cleanup
...
- Made the Color::blend code structure match that in vitapi, for
easier comparison.
2010-07-23 22:47:51 -07:00
Paul Beckingham
eeeff7d389
Bug
...
- Fixed problem with command line configuration overrides that had no
values.
2010-07-23 22:33:02 -07:00
Paul Beckingham
5cecc3d772
Enhancement - color.alternate
...
- The 'stats' and 'info' reports now obey color.alternate.
2010-07-23 22:31:38 -07:00
Paul Beckingham
a3f1aba6f0
Code Cleanup
...
- Reorganized sort_compare code to make certain shortcuts occur
earlier in processing.
2010-07-23 20:57:36 -07:00
Paul Beckingham
30cb5fa4f4
Bug #441 - A colon messes up text replacement with ///
...
- Fixed bug #441 , which misparsed '/a/a:/' as an attribute, rather than a
substitution (thanks to Michelle Crane).
2010-07-23 17:30:14 -07:00
Paul Beckingham
e8c0c8861b
Unit tests - bug.441.t
...
- Added unit test for bug 441, where /one/one:/ fails to substitute,
and instead clobbers the whole description.
2010-07-23 17:16:54 -07:00
Cory Donnelly
9906174547
Unit Tests - dependencies.t
...
- More progress made on dependencies.t, getting to the point where
additional unit tests will need to wait until features exist.
2010-07-23 13:43:30 -04:00
Cory Donnelly
fb2d08581e
Unit Tests - dependencies.t
...
- Added more unit tests to dependencies.t, still more still to go
2010-07-22 21:28:28 -04:00
Paul Beckingham
feeafb9b23
Enhancement - special tags
...
- Implemented the 'nocal' special tag.
2010-07-22 16:17:28 -07:00
Paul Beckingham
a345541ff7
Documentation - special tags
...
- Special tags are now documented in task.1.
- The 'tags' command now highlights special tags.
2010-07-22 16:02:12 -07:00
Federico Hernandez
9a973770d8
Missing include under Linux
2010-07-22 13:10:40 +02:00
Paul Beckingham
e0c60346dc
Unit Tests - countdown
...
- Made tests a bit more generic and less sensitive to time of day.
2010-07-21 23:37:27 -07:00
Paul Beckingham
faa96dbf6b
Enhancement - sort
...
- Tweaks to the comparison function.
2010-07-21 23:36:54 -07:00
Paul Beckingham
f9e78142be
Merge branch 'sort' into 1.9.3
2010-07-21 15:33:24 -07:00
Paul Beckingham
da9985058b
Enhancement - Sorting
...
- Replaced the hand-written combsort with std::sort.
- Added exhaustive set of unit tests to cover the single and double
column sort orders.
2010-07-21 15:30:37 -07:00
Cory Donnelly
bdbe4ba78a
Unit Tests
...
- Added many unit tests to dependencies.t, with many more still to go
2010-07-21 12:17:49 -04:00
Cory Donnelly
3ec8d2fece
Bug #433 - Missing punctuation in some command output
...
- Missed something in Filter.cpp
2010-07-21 11:55:56 -04:00
Cory Donnelly
1528fdc7e1
Unit Tests
...
- Created unit test bug.425.x for unaddressed Bug #425 - Parser preventing
editing of an existing task depending on description
2010-07-20 21:35:28 -04:00
Paul Beckingham
e34f278e1d
Documentation
...
- Commented the code to suggest that T and Z should never be used in
Date::Date.
2010-07-20 17:36:24 -07:00
Paul Beckingham
455be5b8b7
Merge branch '1.9.3' of tasktools.org:task into 1.9.3
2010-07-20 17:21:57 -07:00
Cory Donnelly
0e9ce4c85f
Bug #440 - Parser recognizes an attempt to simultaneously subst and append, but doesn't do it
...
- Added unit test
2010-07-20 20:17:31 -04:00
Paul Beckingham
4ca69b013f
Merge branch '1.9.3' of tasktools.org:task into 1.9.3
2010-07-20 16:57:59 -07:00