Commit graph

64 commits

Author SHA1 Message Date
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
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
32cbe7a049 Bug
- rc.default.due needs to be converted to an epoch before storage.
2011-06-26 23:45:17 -04:00
Paul Beckingham
877ecbc864 Commands - done
- The 'done' command now functional.
- Localized CmdDone.cpp.
2011-06-26 23:28:21 -04:00
Paul Beckingham
41a6ff29c8 Build
- Fixed broken build on CentOS.
2011-06-26 11:34:45 -04:00
Paul Beckingham
b58438bdd4 Regexes
- Added regex support to substirutions.
- Fixed bug that prevented 1.9.4 from shipping with regexes.  If the
  description is "aXXaaXXa", and the substitution is /XX/.../ then the
  first substitutions changes the length of the string to "a...aaXXa"
  and therefore invalidates the index for the second match, and makes
  this change: "a...a...Xa".  The fix is to keep a running 'skew' count
  of the difference in 'from' and 'to' length, to adjust the match
  indexes.
- Moved the helper deltaSubstitutions function into the Task object,
  which makes more sense.
- Cleaned up output composition for CmdAdd.
- Eliminated #ifdef FEATURE_REGEX.  They are here to stay.
2011-06-25 16:41:17 -04:00
Paul Beckingham
9603864924 Commands - add, log
- Implemented add and log commands using new infrastructure.
- Relaxed restriction about creating completed tasks with no dependencies.
- Localized CmdAdd.cpp CmdLog.cpp.
- Implemented Command::modify_task to apply command line arguments to a
  specified task.
- Implemented Command::apply_defaults to apply various initial values to
  a specified task, such as entry date.
2011-06-24 00:58:26 -04:00
Paul Beckingham
aa8d872466 Expressions
- Implemented !~ operator.
- Hid debug output for now.
2011-06-19 23:50:05 -04:00
Paul Beckingham
7762ee2f9e Commands
- Promoted filtering code to the Command base class.
- Added filtering short-circuit.
2011-06-19 10:25:53 -04:00
Paul Beckingham
5d2528bff6 Command: tip
- Removed (stubbed) 'tip' command from core.  Will be external, if
  and when it is developed.
2011-06-13 00:49:37 -04:00
Paul Beckingham
a2da93b681 Commands - modify
- Migrated handleModify to CmdModify.
2011-05-30 15:48:20 -04:00
Paul Beckingham
510ce650a6 Commands - merge
- Migrated handleMerge to CmdMerge.
2011-05-30 14:45:39 -04:00
Paul Beckingham
af90a14cb5 Commands - push
- Migrated handlePush to CmdPush.
2011-05-30 14:37:39 -04:00
Paul Beckingham
99fae1f9a8 Command - pull
- Migrated handlePull to CmdPull.
2011-05-30 14:30:14 -04:00
Paul Beckingham
abd51e81a3 Commands - delete
- Migrated handleDelete to CmdDelete.
2011-05-30 14:00:34 -04:00
Paul Beckingham
908fbd8ca4 Commands - done
- Migrated handleDone to CmdDone.
2011-05-30 13:53:57 -04:00
Paul Beckingham
75a24f5113 Commands - timesheet
- Migrated handleReportTimesheet to CmdTimesheet.
2011-05-30 13:46:08 -04:00
Paul Beckingham
2fb743992f Command - undo
- Migrated handleUndo to CmdUndo.
2011-05-30 13:38:45 -04:00
Paul Beckingham
4c47748dd7 Commands - calendar
- Migrated handleReportCalendar to CmdCalendar.
2011-05-30 13:30:18 -04:00
Paul Beckingham
a7d5641d00 Commands - import
- Migrated handleImport to CmdImport.
2011-05-30 13:18:10 -04:00
Paul Beckingham
4603bdb509 Commands - _query
- Migrated handleQuery to CmdQuery.
2011-05-30 13:00:51 -04:00
Paul Beckingham
75e651626d Commands - summary
- Migrated handleReportSummary to CmdSummary.
2011-05-30 12:49:45 -04:00
Paul Beckingham
61c2e2b439 Commands - duplicate
- Migrated handleDuplicate to CmdDuplicate.
2011-05-30 12:35:56 -04:00
Paul Beckingham
73e9f52793 Feature #655
- New command that lists reports and their descriptions.
2011-05-30 12:25:50 -04:00
Paul Beckingham
6cf7644e02 Commands - config
- Migrated config and _config to CmdConfig.
2011-05-30 11:18:59 -04:00
Paul Beckingham
9e3c6f5bc1 Commands - stop
- Migrated handleStop to CmdStop.
2011-05-30 01:19:11 -04:00
Paul Beckingham
86ab605bd4 Commands - start
- Migrated handleStart to CmdStart.
2011-05-30 01:11:34 -04:00
Paul Beckingham
0429949de5 Commands - color
- Migrated handleColor to CmdColor.
2011-05-30 00:59:15 -04:00
Paul Beckingham
d021bb8188 Commands - denotate
- Migrated handleDenotate to CmdDenotate.
2011-05-30 00:48:43 -04:00
Paul Beckingham
f775341fd5 Commands - annotate
- Migrated handleAnnotate to CmdAnnotate.
2011-05-30 00:24:48 -04:00
Paul Beckingham
c8eb5df1b2 Commands - log
- Migrated handleLog to CmdLog.
2011-05-29 21:43:37 -04:00
Paul Beckingham
cb613c0691 Commands - add
- Migrated handleAdd to CmdAdd.
2011-05-29 19:17:16 -04:00
Paul Beckingham
b0cbc7f757 Commands - burndown.monthly, burndown.weekly, burndown.daily
- Migrated burndown charts to CmdBurndown.
2011-05-29 01:20:58 -04:00
Paul Beckingham
08c4d4bdfe Build
- Fixed more case-sensitivity problems, and missing include files.
2011-05-28 17:53:58 -04:00
Paul Beckingham
82eebc93bf Commands - history.monthly, history.annual, ghistory.monthly, ghistory.annual
- Migrated all history reports into CmdHistory objects.
2011-05-28 17:34:30 -04:00
Paul Beckingham
b9246e04b2 Command - append
- Migrated handleAppend to CmdAppend.
2011-05-28 16:41:21 -04:00
Paul Beckingham
ef65617258 Command - prepend
- Migrated handlePrepend to CmdPrepend.
2011-05-28 16:40:39 -04:00
Paul Beckingham
920e1c6c86 Commands - projects, _projects
- Migraged handleProjects and handleCompletionProjects to CmdProjects.
2011-05-28 16:18:53 -04:00
Paul Beckingham
a7bc09d487 Command - count
- Migrated handleCount to CmdCount.
2011-05-28 16:05:07 -04:00
Paul Beckingham
27d6e7cc81 Commands - ids, _ids, _zshids
- Migrated handleIds, handleCompletionIds, handleZshCompletionIds
  to CmdIDs.
2011-05-28 15:40:18 -04:00
Paul Beckingham
56e4c8172b Commands - stats
- Migrated handleReportStats to CmdStatistics.
2011-05-28 15:11:32 -04:00
Paul Beckingham
33d13ddb1d Commands - _commands, _zshcommands
- Migrated handleCompletionCommand and handleZshCompletionCommands
  to CmdCommands.
2011-05-28 14:57:48 -04:00
Paul Beckingham
330b148ca9 Commands - _tags
- Migrated handleCompletionTags to CmdTags.
2011-05-28 14:34:06 -04:00
Paul Beckingham
b075f1252c Commands - shell
- Migrated handleShell to CmdShell.
- Note there is a segfault bug that will probably go away by itself when
  Context::parse is obsoleted.
2011-05-28 14:22:38 -04:00
Paul Beckingham
bd93126f4e Commands - _urgency
- Migrated _urgency to CmdUrgency.
2011-05-28 14:07:21 -04:00
Paul Beckingham
9af1c71daf Commands - edit
- Migrated edit.cpp to CmdEdit.
2011-05-28 13:38:44 -04:00
Paul Beckingham
ed97fcc108 Commands - diag
- Migrated diag.cpp to CmdDiagnostics.
2011-05-28 13:15:19 -04:00
Paul Beckingham
0ce198ab8c Commands - info
- Migrated 'info' command to CmdInfo.
- Renamed 'info' command to 'information'.
2011-05-28 12:55:45 -04:00
Paul Beckingham
62203a45f8 Commands
- Migrated handleShow to CmdShow.
2011-05-25 00:38:21 -04:00