Commit graph

266 commits

Author SHA1 Message Date
Paul Beckingham
61cedc3ad1 Enhancement - import command
- Implemented import command
- Implemented Context::clearMessages to remove all accumulated
  messages.  This is needed because parts of the import process are
  recursive and we don't want Context to dump messages for every
  import record on completion.
2009-06-17 00:59:31 -04:00
Paul Beckingham
07cf8d6ee8 Enhancements - edit command
- Implemented edit command.
2009-06-17 00:03:09 -04:00
Paul Beckingham
b2c76f6123 Enhancement - modify command
- Implemented modify command
2009-06-16 23:25:35 -04:00
Paul Beckingham
051720a279 Enhancement - annotate
- Implemented annotation command.
2009-06-16 22:55:05 -04:00
Paul Beckingham
23f0a9658e Enhancement - duplicate
- Implemented duplicate command.
- Now allows duplication (and demotion) of recurring tasks.
2009-06-16 22:40:59 -04:00
Paul Beckingham
8a22ac7cf2 Enhancement - header, footer, message
- Added header, footer and message sinks.
- Added individual colorization of headers, footers and messages.
- Added new configuration variables to Config.cpp, taskrc.5.
- Added colorization functions to rules.cpp
2009-06-16 21:55:30 -04:00
Paul Beckingham
027b343e49 Bug Fixes - autofilter
- Auto filter now only creates a filter for read-only commands.
- Fixed bug whereby ambiguities were reported twice:
    "could be one of a, b, a, b".
2009-06-16 12:05:04 -04:00
Paul Beckingham
97d732e5f7 Enhancements - filters
- The project attribute is now automatically filtered with
    project.startswith:<value>
  to provide leftmost matching (ie subprojects).
- Unmodifiable attributes (uuid, start ...) are now prevented from
  being updated if the command is designated as a "write" command.
2009-06-16 10:42:53 -04:00
Paul Beckingham
cdd07be331 Enhancement - Att::type
- Implemented Att::type to discern attribute types to assist with
  type-specific modifier evaluation.
- Fixed bug that required attributes to have specified values, whereas
  stating "name:" means no value for name.
2009-06-16 00:51:11 -04:00
Paul Beckingham
6a77d61faa Enhancements - undo command
- Implemented the undo command.
2009-06-16 00:16:43 -04:00
Paul Beckingham
71b320b361 Enhancement - undelete command
- Implemented undelete command.
2009-06-16 00:08:02 -04:00
Paul Beckingham
41e137a92c Enhancements - stop command
- Implemented stop command
- Fixed bug in TDB that failed to truncate the pending file on
  update.
2009-06-15 23:59:56 -04:00
Paul Beckingham
1551362d1e Enhancements - delete, start
- Implemented delete command.
- Implemented start command.
2009-06-15 23:47:42 -04:00
Paul Beckingham
858f34cf95 Bug Fix - std::vector::erase
- Fixed bug whereby code called std::vector::erase, but then continued
  as though the iterator was still good.
2009-06-15 20:15:40 -04:00
Paul Beckingham
00c5e61d49 Bug Fix - rc:alternate
- Fixed handling of rc: alternate rc file.
- Reorganized Config.cpp regarding defaults.  More work needed.
2009-06-15 17:31:29 -04:00
Paul Beckingham
9f1880e050 Enhancement - done command
- Implemented done command.
2009-06-15 11:27:50 -04:00
Paul Beckingham
98316f7ab1 Enhancement - append
- Implemented append command.
2009-06-15 01:44:42 -04:00
Paul Beckingham
ffd887747f Enhancement - calendar report
- Implemented calendar report.
2009-06-14 15:49:58 -04:00
Paul Beckingham
9004b65956 Enhancement - next report
- Implemented next report.
2009-06-14 14:53:22 -04:00
Paul Beckingham
f470acadaa Enhancements - export
- Implemented Task::composeCSV.
- Implemented export command, but removed filename support.  This
  needs to be documented.
2009-06-14 14:26:39 -04:00
Paul Beckingham
8529daaf28 Enhancements - timesheet report
- Implemented timesheet report.
2009-06-14 13:32:53 -04:00
Paul Beckingham
819c33e491 Enhancements - summary report
- Implemented summary report.
2009-06-14 12:46:01 -04:00
Paul Beckingham
a09246fd71 Enhancement - ghistory report
- Implemented the ghistory report.
2009-06-14 12:31:19 -04:00
Paul Beckingham
9f6b112003 Enhancement - history report
- Implemented history report.
- Improved (not to the point of them working) filters.
- Improved automatic filter construction.
- Removed obsolete members from Task.
- Added tag support to the "add" command.
2009-06-14 12:09:57 -04:00
Paul Beckingham
a04bfc468b Integration - mod
- Now handles blank modifiers.  Like it should.
2009-06-13 17:56:48 -04:00
Paul Beckingham
25d27bec93 Integration - attribute validation
- Implemented digitsOnly primitive.
- Implemented noSpaces primitive.
- Added unit tests for above.
- Att now manages the lists of valid attributes and modifier names.
- validName migrated to Att.
- validModifiableName migrated to Att.
- New Att::validNameValue.
- Removed obsolete validDescription.
- Removed obsolete validPriority.
- Removed obsolete valid.cpp/guess.
- Implemented text.cpp/noVerticalSpace.
- Added unit tests for text.cpp/noVerticalSpace.
- Removed final static lists from valid.cpp.
2009-06-13 16:27:13 -04:00
Paul Beckingham
d99dec5556 Enhancements - info report
- Implemented info report.
- Removed odd Subst and Sequence objects from Task - are they just
  vestigial limbs, or did I add them for a good reason?  They are
  gone now.
- Added Filter::applySequence to replace old filterSequence.
- Removed obsolete report.cpp filter function.
2009-06-13 00:50:48 -04:00
Paul Beckingham
5288e167d0 Enhancement - gc/shadow
- shadow file update is now triggered by the type of command, not
  explicitly by name.
- Context::inShadow now keeps track of whether it is running a shadow
  file update to prevent recursion.
2009-06-12 22:45:42 -04:00
Paul Beckingham
788e264378 Enhancements - custom reports
- Converted active, overdue and completed reports to custom reports.
- Added new recurring report.
- Added support for new 'end' column, which is the completion date.
2009-06-12 22:12:35 -04:00
Paul Beckingham
bd0309b4ff Enhancements - modifiers
- Now only allows one modifier.
- Removed "not", "synth", "next", "first", "last" modifiers.
- Modified match logic.
2009-06-12 21:11:33 -04:00
Paul Beckingham
0b14efbb76 Enhancements - validation
- Implemented Cmd::isReadOnlyCommand.
- Implemented Cmd::isWriteCommand.
- Added unit tests for above.
2009-06-12 01:45:42 -04:00
Paul Beckingham
5836430cc1 Code Cleanup
- Removed obsolete code from main.cpp.
2009-06-11 21:34:40 -04:00
Paul Beckingham
37e08df8ba Enhancements - TDB2::gc
- Stubbed TDB2::gc.
- Fixed broken tests Makefile
- Added handleCustomReport call to Context dispatch.
2009-06-11 21:17:30 -04:00
Paul Beckingham
9a94ea963c Enhancement - locale variant stripping
- If a locale (locale=en-US) contains variant (locale=en-US.UTF8),
  then task ignores the variant.  For now.
2009-06-11 01:37:13 -04:00
Paul Beckingham
ed2ed7c2e2 Enhancements - shadow file
- Implemented (bug not debugged) the shadow file update.
- Added oddly missing (and bypassed) Context::message and Context::footnote
  methods.
2009-06-11 01:30:14 -04:00
Paul Beckingham
a58aa948b8 Enhancement - default.command
- Implemented default.command handling.
2009-06-11 01:10:53 -04:00
Paul Beckingham
d961dfda59 Enhancement - stats
- Implemented stats report.
- Removed more obsolete code.
2009-06-11 00:44:31 -04:00
Paul Beckingham
7b9cb12308 Enhancement - add
- Modified Record::get* methods to be const.
- Implemented TDB2::add.
- Renamed Task::valid to Task::validate.
- Implemented Task::setEntry to default creation time.
- Fixed bug where TDB2 was opening files "rw" instead of "r+".
2009-06-11 00:11:11 -04:00
Paul Beckingham
fc7b344a8b Enhancement - Context::filter
- Automatic filter should not include "uuid".
2009-06-10 22:21:33 -04:00
Paul Beckingham
8bef5a90cd Enhancement - Context::constructFilter
- After parsing the command line, a filter is now constructed.
2009-06-10 22:11:38 -04:00
Paul Beckingham
71f4749d56 Code Cleanup
- Renamed files task.h -> main.h, task.cpp -> main.cpp.  This is to
  prepare for the next rename, which addresses the OpenBSD bug.
- Removed utf8.h, utf8.cpp from Makefile.am, which were inadvertantly
  added.
2009-06-10 21:20:00 -04:00
Paul Beckingham
8dfe4bd30a Enhancement - usage and help commands
- Implemented usage and help commands.
2009-06-10 00:18:02 -04:00
Paul Beckingham
0449f9e0a2 Enhancements - version command
- Implemented version command.
- Corrected config handling in version command.
2009-06-09 23:58:05 -04:00
Paul Beckingham
f3f77a4c78 Enhancement - report stubs
- Stubbed all non-1.8.0 reports.
- Updated all handler signatures.
2009-06-09 22:48:03 -04:00
Paul Beckingham
a694ac05b1 Enhancement - colors report
- Implemented colors report.
- Commented out all other commands and reports.
- Eliminated obsolete findT function.
2009-06-09 22:21:56 -04:00
Paul Beckingham
aff828c51b Integration - "tags" report
- The "tags" report is now working under 1.8.0.
2009-06-08 01:24:33 -04:00
Paul Beckingham
fb5fe5f5b4 Integration - "projects" report
- "projects" report converted to 1.8.0.
- Relocated code from task.cpp to recur.cpp to allow unit tests to link
  without includign task.cpp and therefore main.
- Removed obsolete sandbox directory.
- Fixed bug where Config::load deleted the pre-loaded custom reports.
- Fixed bug where Cmd::valid failed to include custom reports properly.
2009-06-08 00:54:49 -04:00
Paul Beckingham
9d48faa759 Enhancements - T2::legacyParse
- T2 can now parse all supported legacy formats (ff2, ff3) as well as
  ff4.
- Added tag and attribute support to T2.
- Added T2 unit tests for all formats.
2009-06-07 22:17:11 -04:00
Paul Beckingham
72e3f76ed9 Integration - tag parsing
- Added +tag, -tag support to Context.
- Unit tests still broken.
- Task is still broken.
2009-06-07 17:27:08 -04:00
Paul Beckingham
ed39b88719 Integration - Context::parse
- Integrated Att parsing.
- Unit tests are broken right now.
- Stubbed Context::shadow.
- Implemented Duration::valid.
- Task is broken right now.
2009-06-07 17:07:49 -04:00