Commit graph

2415 commits

Author SHA1 Message Date
Louis-Claude Canon
08b37c9943 Code Cleanup
- Unnecessary test replaced by an assertion.
2012-07-09 08:36:20 -04:00
Louis-Claude Canon
95df0baeae Bug #1022
- Fix initialization of Task variables when parsing from a string.
- Correction on default colors.
2012-07-09 08:29:25 -04:00
Paul Beckingham
79e2c591f1 Bug #1022
- Fixed bug #1022, where dependencies were note released when a blocking task
  was completed (thanks to Arkady Grudzinsky).
- The Task object now caches ::is_blocked and ::is_blocking Booleans that are
  determined on pending.data load.
- Simplified and sped up color rule processing using cached values, reducing
  the number of map lookups, and removed loop invariants when the rules are
  not defined.
- Simplified urgency calculations given the cached values for blocked/blocking.
- On load, pending.data is scanned for accurate blocked/blocking status
  determination.
- Obsoleted and removed complex single-task dependency calculations.
- Sped up 'nag' processing by using cached values..
- Modified the 'show' command to consider color.blocking to be valid.
- Added default config value for color.blocking, and included it in the
  precedence list ahead of blocked, as it is more important.
- Updated taskrc.5 man page to include the new color.blocking rule, and its
  place in the rule precedence.
2012-07-09 01:29:51 -04:00
Paul Beckingham
d59aaa6427 TDB2
- Pushed task lookup by ID and UUID down a level from TDB2 to TF2.  This allows
  reuse at the low level for things like proper dependency evaluation.
2012-07-08 16:04:34 -04:00
Paul Beckingham
88fcdab515 Feature #1026
- Feature #1026, command line overrides are now applied before and after the
  creation of the default rc file and data directory, which allows for
  programmatic initialization without keystroke synthesis (thanks to Nicholas
  Rabenau).
2012-07-08 15:16:23 -04:00
Paul Beckingham
b702251431 Performance
- When there is only one element in A3, no point firing up the Dijkstra
  shunt of the infix processing.
2012-07-08 14:38:13 -04:00
Paul Beckingham
99b0c5568a Bug #972, #1018
- Fixed bug that accepted a recurrence duration of '7' as '7secs' instead
  of the intended '7days'.  It is now an error to omit the units.  Thanks to
  Vlad Zhivotnev, Stanley G.
- Modified unit tests to avoid a different error.
2012-07-08 14:24:39 -04:00
Paul Beckingham
4d4f286330 Bugs
- Added an A3::is_attr type override for 'recur', which needs to be
  treated as an un-expanded 'string' type, most, but not all of the
  time.
- Documented the above in ColRecur.cpp.
- Modified Command.cpp to recognize both type 'duration' and name 'recur'.
- Removed Command::next_mod_group argument coalescing for date types,
  which was not used anyway.
- Improved the error message for unrecognized durations, which previously
  included the word 'date'.
- Modified unit tests to accomodate the above error message change.
- Added bug.972.t unit tests, which fail, because it isn't fixed yet.
- Made A3::dump const so it can be used anywhere.
2012-07-08 10:47:01 -04:00
Paul Beckingham
5fcc33f1f8 UDAs
- UDA definitions that have the same name as a core attribute are not
  permitted.
2012-07-05 00:11:54 -04:00
Paul Beckingham
b0b8bfe1d2 Bug #1023
- Fixed bug #1023, which applied default.project and default.priority during
  modification (thanks to Christoph Lange).
- Added unit tests.
- Added Christoph to the AUTHORS file.
2012-07-04 16:45:09 -04:00
Paul Beckingham
d16f434899 Bug #1006, #1024
- Fixed bug #1006, #1024, which caused words like the German 'im' and 'des' in
  a description to be expanded into 'imask' and 'description' (thanks to
  Louis-Claude Canon and Martin U).
- Promoted Louis-Claude Canon in the AUTHORS file, added Martin U.
2012-07-04 16:05:42 -04:00
Paul Beckingham
416cb40e3d Import
- Orphaned UDAs now survive import.
2012-07-04 14:29:12 -04:00
Paul Beckingham
1b329d34b3 UDAs
- The 'udas' command now accepts a filter, and reports UDA usage counts.
- The 'udas' command also detects and lists orphaned UDAs and usage counts.
2012-07-04 13:42:36 -04:00
Paul Beckingham
2be691c2c5 Enhancement
- The 'udas' command now reports allowable values for UDAs.
2012-07-04 10:16:08 -04:00
Paul Beckingham
66eb09ab25 UDAs
- Orphaned UDA name/value pairs show up in the 'info' report, but with
  the name listed as '[name      value]'.  The brackets indicate that the
  data is not modifiable.
2012-07-03 15:58:00 -04:00
Louis-Claude Canon
75822eed47 Code Cleanup
- Reduce the number of project change messages when annoting and denoting.
2012-07-03 09:06:01 -04:00
Louis-Claude Canon
1668aef66b Code Cleanup
- Consistent scheme for printing project change information: always
  shows the progress estimation and add a notification that the project
  has changed if the number of tasks is changed.
2012-07-03 09:05:19 -04:00
Paul Beckingham
7f1d8c3682 UDAs - User Defined Attributes
- Added support for named allowable values.
2012-07-02 22:22:19 -04:00
Paul Beckingham
9a9453a57f Directory::cwd
- Made use of Directory::cwd instead of get_current_working_dir.
2012-07-02 15:40:54 -04:00
Louis-Claude Canon
2b20009b7f Code Cleanup
- No blank line when printing information about project changes.
2012-07-02 15:00:30 -04:00
Louis-Claude Canon
b1e63e575a Bug #1001
- Actual resolution of Bug #1001. The Edit command was actually changing
  the working directory without going back to the original one
  afterwards.
2012-07-02 14:59:29 -04:00
Louis-Claude Canon
e1407437e0 Enhancement
- Allow a separate color for error messages via the 'color.error'
  configuration variable.
2012-06-28 00:25:09 -04:00
Louis-Claude Canon
8ef9ec9b9f Code Cleanup
- Redundant debug message.
- More consistent check for messages aggregation.
2012-06-28 00:23:56 -04:00
Louis-Claude Canon
c84e3cc893 Code Cleanup
- With the separation between standard output and standard error, the solution
  for bug #956 is obsolete. The mechanism (putting verbose to "nothing") is
  still kept for easing the management of the standard error.
2012-06-16 16:09:34 -04:00
Louis-Claude Canon
e5fe704f6a Code Cleanup 2012-06-16 16:08:51 -04:00
Louis-Claude Canon
b45a305df2 Enhancement
- Output error, header, footnote and debug messages on standard error.
2012-06-16 16:07:27 -04:00
Louis-Claude Canon
b093d23f1f Typos
- Fix various typos in comments and documentation.

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2012-06-12 16:44:14 -04:00
Paul Beckingham
fc4a71aa5c Bug #1001
- Fixed bug #1001, which caused a segv (thanks to Bryce Harrington).
2012-06-10 16:47:27 -04:00
Paul Beckingham
9a6319a210 Parsing
- Use of broken 'isalpha' caused 'entrée' to be parsed by Nibbler::getName
  as 'entr'.  This is part of bug #1006, but only a small part.
2012-06-10 16:17:09 -04:00
Paul Beckingham
180ff95649 Bug #1017
- Fixed bug #1017, which exported invalid JSON when there were no tasks (thanks
  to Nicholas Rabenau).
2012-06-10 15:21:55 -04:00
Paul Beckingham
128b139b17 Bug #1016
- Fixed bug #1016, which caused segfaults when importing JSON with annotations
  that lack description or entry date (thanks to Nicholas Rabenau).
2012-06-10 15:03:56 -04:00
Paul Beckingham
3e36438597 Merge branch '2.0.1' of tasktools.org:task into 2.0.1 2012-06-02 12:52:41 -04:00
Paul Beckingham
65e8cc63fc Enhancement
- Added ostream converter for Path object.
2012-06-02 12:52:13 -04:00
Paul Beckingham
f23d8921e4 Enhancement
- Modified the closeEnough function to accept a minimum match length.
  Useful, but initially not used.
2012-06-02 10:05:32 -04:00
Paul Beckingham
b63bd9e985 Feature #921
- Feature #921, which implements a 'udas' command that describes defined UDAs,
  and a '_udas' for completion purposes.
2012-05-28 16:06:33 -04:00
Paul Beckingham
c42706a3dc Bug #1008
- Fixed bug #1008, which failed to remove tasks with the special tag '+nocal'
  from the calendar report output with 'calendar.details=full' set (thanks to
  Bryan Kam).
2012-05-28 12:51:27 -04:00
Louis-Claude Canon
7a8e292fe8 Bug #990
- Precise in the documentation that the wildcards for color precedence must
  terminate with a dot. If not, 'tag' is completed as 'tagged', which violates
  the default precedence rule.
- Change default precedence rule to reflect this.
- Unit test.
- ChangeLog and AUTHORS file updated.
2012-05-28 09:16:12 -04:00
Louis-Claude Canon
90c420263c Code Cleanup
- Check systematically if the color is non-trivial before blending.
2012-05-28 09:16:05 -04:00
Jörg Plate
f2f6b788e8 Bug #919
- Modified to allow multiple holiday file sources, in other words
  duplicate dates.

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2012-05-26 13:29:50 -04:00
Paul Beckingham
ddd7bc3f0a Enhancement
- Directory handling enhancements with Directory::cwd and Directory::up
  methods, with unit tests.
2012-05-25 18:03:06 -04:00
Jörg Plate
43076a6cd7 Bug #919
- Applied patch for bug #919, so the holidays listed on the 'calendar' report
  are sorted (thanks to Jörg Plate).

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2012-05-24 00:52:46 -04:00
Paul Beckingham
f70cad081f Code Cleanup
- Removed whitespace at EOL.
2012-05-23 06:52:36 -04:00
Louis-Claude Canon
988288f6d2 Code Cleanup
- Simpler code for 'ids' command.
- Sort the uuids with 'uuids' and '_uuids' commands (stabler output).
2012-05-23 06:49:31 -04:00
Louis-Claude Canon
0b1b677aa5 Bug #956
- Prevent any verbose information to be printed with the 'ids', 'uuids' and
  helper subcommands.
- Unit tests.
- Precise this behavior in the man pages.
2012-05-23 06:49:25 -04:00
Louis-Claude Canon
fe954a6acc Enhancement
- Similar subcommands for 'uuids' as there is for 'ids' ('_uuids' and '_zshuuids').
- Extends the scope and the precision of the unit tests for ids.
- Corresponding documentation in the man pages.
2012-05-23 06:48:54 -04:00
Louis-Claude Canon
82a4607ec6 Enhancement
- Separate date format when editing from the default one.
2012-05-21 08:20:27 -04:00
Louis-Claude Canon
ba992a631e Enhancement
- Clarify the dateformat related variables for 'task information'.
2012-05-21 08:20:12 -04:00
Louis-Claude Canon
84e1d0e7d2 Code Cleanup
- Centralize the date format determination when editing.
2012-05-21 08:20:01 -04:00
Louis-Claude Canon
72621febd4 Code Cleanup
- Factorize code when printing dates with edit.
2012-05-21 08:19:40 -04:00
Louis-Claude Canon
db2a01ba08 Bug
- Fix the solution for bug #959 (setting new dates was not working properly).
2012-05-21 08:19:36 -04:00