Commit graph

887 commits

Author SHA1 Message Date
Paul Beckingham
58d7de8478 Enhancement
- Implemented Task::validate.
2009-06-28 11:10:51 -04:00
Paul Beckingham
b9e1bdc145 Documentation Update
- Addressed concerns in issue #85.
2009-06-28 10:44:50 -04:00
Paul Beckingham
ce4f26bdf3 Unit Tests
- Fixed a series of bugs to improve the test suite results.
2009-06-28 01:04:23 -04:00
Paul Beckingham
f3d3126839 Bug Fix
- Fixed bug that caused asserts in Table.cpp when a column had a blank
  heading and value.
2009-06-27 23:42:49 -04:00
Paul Beckingham
3dcda73e0c Enhancement
- Implemented tri-state confirmation for done command.
2009-06-27 21:51:24 -04:00
Paul Beckingham
8d76eaca88 Enhancement
- Implemented tri-state confirmation in the annotate command.
2009-06-27 21:31:11 -04:00
Paul Beckingham
a2cc75d2c7 Enhancement - confirmation
- Added tri-state confirmation to append command.
2009-06-27 21:23:45 -04:00
Paul Beckingham
1f3092469e Code Cleanup
- Eliminated valid.cpp by relocating functions to more sensible locations.
2009-06-27 20:49:28 -04:00
Paul Beckingham
52052f91f9 Bug Fix - formatBytes
- Corrected code and tests regarding floating point rounding.
2009-06-27 20:39:33 -04:00
Paul Beckingham
029b2d1182 Bug Fix - timesheet end date
- Fixed display of timesheet end date.  It was one day off.
2009-06-27 18:08:09 -04:00
Paul Beckingham
6e4f60c4fe Enhancement - confirmation on big changes
- Implemented confirmation on big changes.  That means if the description is
  changed, or more than 2 tasks are modified in a single command.
- Implemented taskDiff to detect differences between two tasks.
- Implemented taskDifferences to describe differences between two tasks.
2009-06-27 17:09:29 -04:00
Paul Beckingham
8e8f5935b3 Documentation Update
- Added 'bulk' variable to man page and Config.cpp.
2009-06-27 16:46:26 -04:00
Paul Beckingham
facb4dcb41 Bug Fix - Att::match
- Fixed bug in Att::match that causes blank dates to be interpreted
  as 12/31/1969, and therefore pass "xxx.before:" tests.
- Added the "cal" symlink trick to ChangeLog.
- Removed incorrect i18n tags from Config.cpp.
- Allowed .taskrc:confirmation=no to bypass Permission checking.
2009-06-27 16:00:41 -04:00
Paul Beckingham
7e0a1759f9 Enhancement - cal symlink
- Automatically runs "task calendar ..." if "task" is symlinked to "cal".
- Allows task to run as a replacement to Unix cal.
2009-06-27 12:39:05 -04:00
Paul Beckingham
518aea870f Enhancement - Permission
- Implemented new Permission object to manage tri-state confirmation
  of changes to multiple tasks.
2009-06-27 10:07:00 -04:00
Paul Beckingham
6d3df6922b Unit Tests - Att
- Added unit tests to verify functionality of Att::type,
  Att::validInternalName and Att::validModifiableName.
2009-06-27 10:04:38 -04:00
Paul Beckingham
c787e67d9c Bug Fix - 'max' date
- Changed the max date from Jan 19 2038 to Dec 31 2038.  This still
  serves the purpose, but avoids the UTC/EST/CEST timezon problems
  we have seen (thanks to Federico Hernandez).
2009-06-27 10:02:48 -04:00
Federico Hernandez
9aed6ec228 Unit tests for new 'task cal' functionality 2009-06-27 02:02:48 +02:00
Paul Beckingham
bb78f61d2a Unit Tests
- Fixed obsolete test in basic.t
2009-06-26 00:31:30 -04:00
Paul Beckingham
0440189b1d Bug Fix
- Fixed bug that caused Att::match to assume a Date was not already
  converted to an epoch.
2009-06-26 00:05:33 -04:00
Paul Beckingham
53155fcc34 Bug Fix - parsing
- Now properly enumerates ambiguous commands.
- Now properly enumerates ambiguous colors.
- Now displays suitable error when a command like "task x" is entered.
2009-06-25 22:21:43 -04:00
Paul Beckingham
d6168ff6a6 Merge branch '1.8.0' of git@github.com:pbeckingham/task into 1.8.0 2009-06-25 19:32:48 -04:00
Federico Hernandez
f3659cf709 New functionality for "task cal"
- 'task cal'        or 'task cal y'
    Prints a calendar starting from the current month/year
  - 'task cal due'    or 'task cal due y'
    Prints a calendar starting from the month with
    the oldest active due task
  - 'task cal 2010'
    Prints a yearly 12-month calendar
  - 'task cal 4 2010' or 'task cal 4 2010 y'
    Prints a calendar starting from the given month/year

  Calendars are either printed as 12 month calendars (y) or
  printed with the number of months that fits into the terminal width
2009-06-25 23:24:33 +02:00
Paul Beckingham
1cfe879409 Enhancement - Task::operator==
- Implemented Task::operator==.
- Implemented unit tests.
2009-06-25 17:08:39 -04:00
Paul Beckingham
a56eeb9ec2 Enhancements - task diff
- Implemented util.cpp/taskDiff to generate a proxy description of the
  difference between two tasks.
- Implemented unit tests for taskDiff.
2009-06-25 16:58:58 -04:00
Paul Beckingham
c5d7b41d98 Code Cleanup
- Migrated from Context::message to Context::footnote.  This more clear
  to the developer where the messages will be shown.
2009-06-25 15:00:32 -04:00
Federico Hernandez
8bcf459a52 Merge branch '1.8.0' of git@github.com:pbeckingham/task into cal 2009-06-25 12:52:57 +02:00
Paul Beckingham
104ad5a5b5 Enhancement - timer
- Now displays " sec" after timing display.
2009-06-25 01:24:48 -04:00
Paul Beckingham
a32263e7ea Enhancement - next
- The next report is now a custom report.  There is also a nasty
  piece of logic that lets the next report exist as a custom report,
  and also with it's own handleReportNext function to prep and filter
  the tasks, then hand off to runCustomReport.
2009-06-25 00:47:07 -04:00
Paul Beckingham
f31f068322 Code Cleanup
- Broke out the guts of handleCustomReport into runCustomReport, so
  that the next report can generate it's own task list, then allow the
  custom report handling to render it.  This means the next report is
  essentially (but not quite) a custom report.
2009-06-24 21:56:31 -04:00
Paul Beckingham
5632c49945 Code Cleanup
- Removed references to ::strcmp.  Thanks Fredde.
2009-06-24 21:55:44 -04:00
Federico Hernandez
b67b64ea00 task cal modifications 2009-06-25 03:03:08 +02:00
Paul Beckingham
5cb009bc0a Merge branch '1.8.0' of git@github.com:pbeckingham/task into 1.8.0 2009-06-23 19:53:31 -04:00
Federico Hernandez
ed7a9273d0 Introduced longversion configuration variable.
- When off just a short version msg is displayed.
  - When on the current values for the configuration
    variables are also displayed. Default is on.
2009-06-24 00:32:45 +02:00
Paul Beckingham
78afa4e110 Enhancement - Aliases
- Moved alias mapping to Context.
- Added Context::canonicalize to resolve aliases.
- Added Context::loadAliases to reload on config file change.
- Removed old alias processing from Cmd.
- Doesn't work yet, but the data is loaded.
2009-06-23 17:38:58 -04:00
Paul Beckingham
b6bc72c449 Enhancement - confirm3
- Added a tri-state confirmation function for confirming bulk operations
  allowing the user to answer yes/no/all to and optionally allow,
  disallow or bulk-allow big changes.
2009-06-23 14:56:15 -04:00
Paul Beckingham
acb6e3cfdc Enhancement - timers
- Timers now only use fixed precision for even very small numbers.
2009-06-23 09:56:31 -04:00
Federico Hernandez
b31cc639a4 Fixed bug due to incompatible 'date' commands on OS X and Linux
to display runtime of all unit tests
2009-06-23 10:49:55 +02:00
Paul Beckingham
f7c91d6db7 Unit Tests
- Fixed a series of broken tests.
2009-06-23 01:54:16 -04:00
Paul Beckingham
f7d40e8d8d Unit Tests
- Fixed unit test build problem.
2009-06-23 01:32:24 -04:00
Paul Beckingham
50f000988b Debugging
- Added timers to measure performance.
2009-06-23 01:23:46 -04:00
Paul Beckingham
e59e35ae29 Code Cleanup
- Added declared but unimplemented copy constructors and assignment
  operators.
2009-06-23 00:00:50 -04:00
Paul Beckingham
c6a56d444e Bug Fix, Tweaks
- .taskrc debug= now defaults to 'off', which will reduce clutter
  and won't surprise beta testers.
- interactive.cpp did not compile when ncurses was not detected by
  autoconf.  That code branch obviously never got executed.
- The interactive shell now instructs the user to type 'quit' to
  leave the shell.
2009-06-22 22:33:09 -04:00
Paul Beckingham
62449d8b3e Bug Fix - Calendar
- Fixed bug in calendar that failed to consider only pending tasks
  when coloring in the calendar display, and when calculating the
  most overdue task to be displayed.
- Modified util.cpp/formatSeconds to stop displaying fractional days,
  because having a task age represented as 5.1 days is silly.
2009-06-22 16:59:51 -04:00
Federico Hernandez
a4f9493ce7 Added output of runtime 2009-06-22 09:19:10 +02:00
Federico Hernandez
dd3b651767 Fixed include statement for Linux 2009-06-22 08:32:52 +02:00
Federico Hernandez
39da7bddfd Added dummy tips file for German and Swedish 2009-06-22 08:23:01 +02:00
Federico Hernandez
94e4c7b9da Ignore temp data in tests dir 2009-06-22 08:21:17 +02:00
Paul Beckingham
329a78039a Enhancement - wait status
- Supports the new Task::waiting status.
- Supports: task <id> wait:<date>
- Supports: task <id> wait:
- Supports: task waiting
2009-06-21 22:42:32 -04:00
Paul Beckingham
40bde9e765 Enhancement - shadow files
- Properly clears out the context, so shadow files can work.
2009-06-21 15:37:36 -04:00