Commit graph

1301 commits

Author SHA1 Message Date
Paul Beckingham
2334911b34 Bug #440 - Parser fails to simultaneously subst and append
- The code wasn't even trying to apply the substitutions for the
  append and prepend commands.
2010-08-08 18:06:40 -04:00
Paul Beckingham
07e36e695d Bug - import
- Fixed bug that only allowed import of *text* if there was more
  than one line of it.
- Fixed some whacko formatting.
2010-08-08 16:26:40 -04:00
Paul Beckingham
98042548dd Unit Tests
- All tests (I hope) now properly remove completed.data on exit, which
  should prevent certain non-deterministic tinderbox results caused by
  residual data.
2010-08-08 13:00:05 -04:00
Paul Beckingham
5b8dbd8ff1 Bug - import.yaml
- Fixed bug in import for YAML and TODO that failed to recognize that
  a task was completed or deleted, and consequently set a Task::pending
  status.
- Enhanced unit tests to verify this.
2010-08-08 11:06:58 -04:00
Paul Beckingham
982ae87ec0 New Unused Code
- Added the outlines of the new Column code.  This is not compiled
  in 1.9.3, but will be in 1.9.4.
2010-08-07 23:55:14 -04:00
Paul Beckingham
0fe75eeedf Unit Tests
- Implemented YAML import/export roundtrip tests.
- Corrected export.yaml.t regarding headers.
- Modified export.yaml, export.csv and export.ical to clear any
  context.headers messages so they don't interfere with the output.
2010-08-07 22:38:03 -04:00
Paul Beckingham
3ae5b6ddc5 Bug #442 - "task edit" fails on Cygwin when using a Windows editor
- Made a partial fix that at least allows any editor to be launched,
  and that can then locate the file.
- Not addressed is the fact that some launchable Windows editors need
  Windows line encodings, and other are flexible.
2010-08-07 22:13:12 -04:00
Paul Beckingham
a306892509 Code Cleanup
- Removed unreachable code from Table::sort_compare.
2010-08-07 20:34:54 -04:00
Paul Beckingham
a8c8bf4671 Documentation
- Added the 'merge' command to the help output.
2010-08-07 20:14:01 -04:00
Paul Beckingham
3bb7abf9c3 Bug - limit
- When the 'limit:N' filter was used, a confusing message was displayed,
  especially when there were fewer filtered tasks that the limit.
2010-08-07 20:05:34 -04:00
Paul Beckingham
f83cc3f39a Sorting
- Completed sort_compare routine to mimic 1.9.2, but using std::sort.
- Added blank task to the unit tests to prove the sorting is working
  (it wasn't), then fixed all.
2010-08-07 19:58:56 -04:00
Johannes Schlatow
7294869d07 Merge command
* Renamed command _merge into merge
2010-08-07 17:50:02 +02:00
Paul Beckingham
03c9b96955 Output Cleanup
- No point display "blocked by" and "is blocking" in the info report
  if there are no other tasks to list.
2010-08-07 00:40:45 -04:00
Paul Beckingham
80d1c03457 Unit Tests
- All tests that sleep will now announce the duration of the sleep
  beforehand.
2010-08-07 00:22:05 -04:00
Paul Beckingham
6dd4067167 Unit Tests - urgency
- Implemented unit tests for calculating urgency.
2010-08-07 00:15:46 -04:00
Paul Beckingham
2c858c6988 Feature - urgency
- Added the urgency value to the 'info' report.
2010-08-06 19:04:56 -04:00
Paul Beckingham
d8544181ce Feature - Urgency
- Implemented the urgency algorithm according to rfc31.
- Added a new '_urgency' command to test the algorithm.
2010-08-06 19:04:01 -04:00
Paul Beckingham
3ac627978c Merge branch '1.9.3' of tasktools.org:task into 1.9.3 2010-08-06 19:00:40 -04:00
Paul Beckingham
fce4633de6 Bug #459 - Error when using limit:n where n < lines on screen and < results
- Fixed bug that displays 'limit' result lines when it has no need to.
2010-08-06 18:58:34 -04:00
Johannes Schlatow
f6cfa1dfa5 Merge command
- Added call of gc() before executing the merge algorithm
- Removed workaround in unit test merge.t
2010-08-06 14:58:38 +02:00
Johannes Schlatow
aa891401e4 Hooks
- Applied patch from Johannes to add missing hooks.

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2010-08-04 14:39:17 -04:00
Johannes Schlatow
c640e05049 Unit tests
- Added tests for class Taskmod
- Added tests for _merge command
2010-08-04 19:04:16 +02:00
Paul Beckingham
3945ccf019 Unit tests
- color.duetoday.t now tolerates 16- and 256-color variants of 'red'.
2010-08-04 08:18:15 -04:00
Paul Beckingham
1687e85335 Dependencies
- Implemented/stubbed some of the dependency helper functions.
2010-08-04 00:55:08 -04:00
Paul Beckingham
b050d67ba9 Dependencies
- Added TDB::gc code to remove dangling dependencies.
2010-08-04 00:43:38 -04:00
Paul Beckingham
cade134f40 Unit tests
- Fixed bug in color.duetoday.t:  now that the definition of overdue
  means 'due < now', adding a task with 'due:now' instantly creates
  an overdue task, not a due task.  To create a due task, use 'due:1hr'
  or some duration which gets added to now.
2010-08-03 23:12:40 -04:00
Paul Beckingham
92ede80e4b Unit tests
- Fixed export.yaml.t because 'tail +2 file' does not work on tasktools.org.
2010-08-03 23:07:18 -04:00
Paul Beckingham
448f865cf1 Code Cleanup
- Fixed compiler warning in text.cpp.
2010-08-03 22:55:08 -04:00
Paul Beckingham
70bf3099ee Bug
- Fixed bug in extractLine that performed std::string::length when it
  should have use the new characters function.  The problem was incorrect
  hyphenation with utf8 text in narrow fields.
2010-08-02 17:58:55 -04:00
Paul Beckingham
db27328558 Unit tests
- The dependencies.t unit test script failed to unlink completed.data,
  which polluted the subsequent test script.
- Simplified some Perl in start.t.
- Allowed for line wrapping in start.t.
2010-08-02 17:56:34 -04:00
Paul Beckingham
e090f556da Feature #244, #272, #274, #275
- Implemented export.yaml, import (yaml).
- Updated man page.
- 'export' is now an alias to 'export.yaml'.
- Added missing 'tags' attribute as an internal Att.
- Improved recognition of YAML.
- Added unit tests for export.yaml, import (yaml).
- Added missing unlink from dependencies.t
2010-08-02 17:55:23 -04:00
Paul Beckingham
233a6ae951 Bug
- Fixed problem with the 'undo' command not observing the rc.color or the
  rc._forcecolor settings.
2010-08-02 01:00:20 -04:00
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