Commit graph

2404 commits

Author SHA1 Message Date
Paul Beckingham
ad55fa2d79 Verbosity
- Implemented new verbosity token 'new-id' which controls whether
  newly generated task IDs are reported.
2011-07-10 10:08:23 -04:00
Paul Beckingham
3456a24749 Documentation Update
- Brought the ChangeLog up to date with recent multiple bug closings.
2011-07-10 02:06:59 -04:00
Paul Beckingham
9b3f9ee4ff Feature #514
- Added feature #514, which allows duplication of tasks based on a generalized
  filter, rather than just IDs (thanks to Peter De Poorter).
2011-07-10 01:48:21 -04:00
Paul Beckingham
f0d2af2651 Filter Bugs
- A substitution arg is categorized as "subst", but was tested for
  "substitution".
- The Arguments::is_multipart method was triggering on '/', which is
  wrong, but I can't remember why I put it in there.  Hmmm.
- When extracting a write-filter, substitutions after the command
  were generating an error, whereas they should be ignored.
- Task::substitute was modifying data even when the patterns were not
  matching.  Yikes.
- Added unit tests for en-passant modification of all types during
  done, delete, start, stop.
2011-07-10 01:03:52 -04:00
Paul Beckingham
69e70889be Unit Tests
- Prevented the info command from running a GC first, which breaks
  certain unit tests.
- Modified delete.t to test annoation on delete.
2011-07-10 00:01:48 -04:00
Paul Beckingham
d087bdfd38 Enhancement
- Various commands now allow modification and annotation.
2011-07-09 23:45:31 -04:00
Paul Beckingham
b5f04a3ebc Code Cleanup
- Obsoleted Context::disallowModifications, because they are no longer
  disallowed.
2011-07-09 23:27:20 -04:00
Paul Beckingham
a16b8366cd TDB
- Integration TDB2 into the initialization process.  It begins...
2011-07-09 21:25:46 -04:00
Paul Beckingham
10b97fc967 Feature #340
- Added feature #340, which implements new color rules 'color.completed' and
  'color.deleted'.
2011-07-09 19:00:58 -04:00
Paul Beckingham
7986227ea2 Bug #691
- Fixed bug #691, which was a mis-reporting of file lock state even when file
  locking was turned off (thanks to Tom Duffy).
2011-07-09 18:30:27 -04:00
Paul Beckingham
63308441ec Documentation
- Added internal documentation on the use of categorized arguments
  in filters.
2011-07-09 18:08:54 -04:00
Paul Beckingham
3abb4d7dd6 I18N
- Completed localizing CmdLog.cpp.
2011-07-09 17:50:43 -04:00
Paul Beckingham
f483d1ed9d Unit Tests - arguments.t
- Removed two obsolete expression operators, % and ^.
2011-07-09 17:49:41 -04:00
Paul Beckingham
322824567f Unit Tests - args.1.t
- Added tests to verify that '<id> <command>' and '<command> <id>'
  both work as expected.
2011-07-09 17:48:14 -04:00
Paul Beckingham
9b2e61f9b3 Arguments
- Corrected mishandling of sequence in both read-only and write
  command filters.
2011-07-09 17:05:25 -04:00
Paul Beckingham
1cb4d19c3c Argument Parsing
- On task modification, all attributes are canonicalized.
2011-07-09 09:51:19 -04:00
Paul Beckingham
2b135ed3c2 Expressions
- Variants can now construct dates and duration from std::string.
2011-07-09 09:03:15 -04:00
Paul Beckingham
aea1c8fea6 Command - config
- Reenabled the config command with new argument processing.
2011-07-08 01:32:26 -04:00
Paul Beckingham
8731bf9ac6 Calendar
- If the program is renamed 'cal' or 'calendar', or symlinked to
  either 'cal' or 'calendar', then the calendar report is run.
2011-07-08 01:16:05 -04:00
Paul Beckingham
e92a7fdf7d Commands - color
- Reenabled the color command using new argument processing.
2011-07-07 01:35:37 -04:00
Paul Beckingham
2ce0b5a1ab closeEnough
- Implemented closeEnough, which does a truncated, caseless compare
  between two strings.  For example, "FoO" is cloneEnough to "food."
  to be a match.  Used to allow mixed case and abbreviated arguments.
2011-07-07 01:33:43 -04:00
Paul Beckingham
63e3f5711e Merge branch '2.0.0' of tasktools.org:task into 2.0.0 2011-07-06 22:53:32 -04:00
Paul Beckingham
01253f1cdf Error Handling
- Errors that occur during initialization no longer prevent the
  display of debug info.
2011-07-06 22:52:59 -04:00
Paul Beckingham
7a544489ae Command Line
- Added a method for extracting unstructured text from the command line.
2011-07-06 22:47:47 -04:00
Bryce Harrington
5e693b2530 Bug #799
- Applied documentation patch for #799, fixing a broken link in the man page.

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2011-07-06 18:39:44 -04:00
Paul Beckingham
8ff3a1675d Duration
- Implemented operator+=, operator-=.
- Added unit tests.
2011-07-04 14:22:33 -04:00
Paul Beckingham
b70f4e8528 Variant
- Cleaned up some operator implementations.
- Added Date, Duration formatting.
2011-07-04 13:51:36 -04:00
Paul Beckingham
fc793e7b1d Duration
- Implemented missing operator<=, operator>=.
- Added corresponding unit tests.
2011-07-04 13:34:20 -04:00
Paul Beckingham
33bb6b6d85 Expressions
- Improved categorization by using the Triple to represent the three
  (raw/inferred/category) values to aid in extraction.
2011-07-04 11:58:55 -04:00
Paul Beckingham
2d4ee13a46 Urgency
- Broke out urgency into separate functions.
2011-07-04 00:28:44 -04:00
Paul Beckingham
42becb9e41 Expressions/Arguments
- Converted the arguments parsed from a pair (token/modified-category)
  to a triple (token/type/category)
2011-07-02 11:47:39 -04:00
Paul Beckingham
e1aea08f81 Unit Tests
- Fixed test that assumed old-style command usage.
- Corrected duration unit tests.
2011-07-02 10:09:37 -04:00
Paul Beckingham
32392b8650 Edit - reenabled
- Reenabled the edit command with the new filtering mechanism.
2011-07-02 09:59:50 -04:00
Paul Beckingham
f1b5999983 Bug - ColDescriptionf indent
- Fixed bug in description.default rendering that inserted the indentation
  twice.
2011-07-02 09:57:42 -04:00
Paul Beckingham
72fa53ad3d I18N
- Localized more files.
2011-07-01 22:55:46 -04:00
Paul Beckingham
59ccad5b62 I18N
- Localized more files.
2011-07-01 22:33:49 -04:00
Paul Beckingham
99d25bd0db Enhancement
- Implemented Record::get_duration as a helper.
2011-07-01 22:21:25 -04:00
Paul Beckingham
63f91c2f88 Enhancement
- Implemented Record::get_date to eliminated the need to obtain a date
  as a string, then convert to time_t, then instantiate a Date.
2011-07-01 22:13:34 -04:00
Paul Beckingham
7d5f4fdfc7 I18N
- Localized Task.cpp
2011-07-01 21:50:23 -04:00
Paul Beckingham
a9a4c1c692 I18N
- Localized more files.
2011-07-01 21:16:28 -04:00
Owen Clarke
3b2e93f1a0 Bug #772
- Implemented custom uuid function that doesn't suffer from the precision
  and cyclic lack of randomness of the previous implementation.

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2011-07-01 15:34:41 -04:00
Ben Boeckel
9f2c5a6190 Bug #798
- Applied patches for bug #798 which allows out-of-source builds (thanks to
  Ben Boeckel).
- Added Ben to the AUTHORS file.

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2011-07-01 09:21:23 -04:00
Owen Clarke
3af5194442 Bug #797
- Fixed bug #797 which corrects a build problem with 'srandom' (thanks to Owen
  Clarke).

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2011-07-01 09:04:52 -04:00
Paul Beckingham
fd484ee264 Feature
- The duration 'm' is now interpreted as 'months', not 'minutes'.
2011-06-30 18:35:54 -04:00
Paul Beckingham
829a26d70b I18N
- Localized projects and _projects commands.
2011-06-29 23:05:53 -04:00
Owen Clarke
f5e155e54d Bug 795
- Improved detection of uuid library, and the uuid_unparse_lower
  function.

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2011-06-29 22:38:41 -04:00
Paul Beckingham
9ceae7c5c2 Expressions
- Eliminated % modulus operator - who cares?
- Found a potential problem with argv[0].
2011-06-28 00:47:28 -04:00
Paul Beckingham
3096364352 Expressions
- Implemented type-specific <, <=, >, <= for "priority".  Untested.
2011-06-28 00:35:15 -04:00
Paul Beckingham
2c621eaadc Unit Tests
- The dom.t tests were segfaulting because they used a blank Context
  with no arguments, and when the DOM referecne 'context.program' was
  queried, it failed because there was no Context::args[0].
2011-06-27 23:26:51 -04:00
Paul Beckingham
45a757832a Feature #559
- Added feature #559, which implements a new configuration variable,
  rc.exit.on.missing.db, which causes taskwarrior to exit if the
  rc.data.location is missing (thanks to Sander Marechal).
2011-06-27 23:23:28 -04:00