Commit graph

4577 commits

Author SHA1 Message Date
Paul Beckingham
ff966c069c Tasksh
- Took the broken tasksh program out back behind the barn and shot it.
  It will be rewritten as a separate project, and extension.
2014-06-08 18:24:30 -04:00
Paul Beckingham
63eb32d177 Task
- Disabled ambiguous date parsing. Ain't nobody got time for that.
2014-06-08 16:20:31 -04:00
Paul Beckingham
20d4e37b40 Dates
- Corrected implementation of all named dates. There were ... issues.
2014-06-08 15:02:08 -04:00
Paul Beckingham
22f1bf709e CmdCalc
- Set ambiguity to false, thus disabling recognition of certain date forms.
2014-06-08 14:18:34 -04:00
Paul Beckingham
ddcadb35f7 Filter
- Set ambiguity to false, thus disabling recognition of certain date forms.
2014-06-08 14:17:50 -04:00
Paul Beckingham
0aa323164a Unit Tests
- Added Lexer tests to make sure '9th' and '10th' are recognized as identifiers.
2014-06-08 14:16:46 -04:00
Paul Beckingham
4041639e36 Lexer
- Added downgrade from typeNumber to typeIdentifer if a number is followed by a
  letter, thus supporting "9th" as an identifier. This causes much breakage.
2014-06-08 14:15:07 -04:00
Paul Beckingham
f316413139 CmdCalc
- The 'calc' command (and only the 'calc' command) propagates the rc.debug
  setting to Eval.  This provides the means to debug expression problems.
2014-06-08 13:10:20 -04:00
Paul Beckingham
9390e17871 Documentation
- Removed obsolete task-tutorial.5 man page. Tutorials will now only
  reside online. This represents a gradual move towards single-source
  documentation.
2014-06-08 11:19:11 -04:00
Paul Beckingham
93de3e3bb0 TW-244
- TW-244 task add "Description (Information)" results in
         "Description ( Information)".
2014-06-08 10:34:45 -04:00
Paul Beckingham
7ba99d6100 TW-250
- TW-250 Opening parenthesis in description gets padded in task 2.0.0 bet 2
         (thanks to Michelle Crane).
2014-06-08 10:05:07 -04:00
Paul Beckingham
46a42847b0 Tw-251
- TW-251 extra spaces added after ( and / (thanks to Andy Spiegl).
2014-06-08 10:02:51 -04:00
Paul Beckingham
e6ba46b9fe TW-1273
- TW-1273 Words in task descriptions and annotations are cut-off after a hyphen
          (thanks to Elias Probst).
2014-06-08 09:05:53 -04:00
Paul Beckingham
b9b5338b67 TW-242
- TW-242 extra Space when annotating a path/filename, taskopen can not open the
         file (thanks to Andreas Kalex).
2014-06-08 08:37:23 -04:00
Paul Beckingham
eae72915f2 TW-221
- TW-221 Migrate task-faq man page to the Wiki.
  [Note: task-faq.5 man page obsolete, replaced by answers.tasktools.org]
2014-06-08 08:31:36 -04:00
Paul Beckingham
bf5db2acfc TW-218
- TW-218 Reveal terms of urgency calculation for a given task (thanks to Max
         Muller).
2014-06-08 08:28:05 -04:00
Paul Beckingham
e0917f4397 Documentation
- Removed obsolete task-faq.5 man page.
2014-06-07 13:06:19 -04:00
Paul Beckingham
dcab169987 CmdDenotate
- Corrected use of command line arguments for a pattern - now uses
  modification args instead of all words.
2014-06-07 12:50:39 -04:00
Paul Beckingham
85481e3e69 Diagnostics
- Consolidated two debug lines into one, so that ViewTask::render now
  reports available width, and Context::getWidth does not.
2014-06-07 09:54:22 -04:00
Paul Beckingham
9537a91e89 Text
- Added another format overload. Time for variadics?
2014-06-07 09:52:01 -04:00
Paul Beckingham
4d4e740f5c Unit Tests
- Added ANNOTATED tests.
2014-06-07 09:45:58 -04:00
Paul Beckingham
c89e8eda0e Unit Tests
- Added first batch of virtual tag tests.
2014-06-07 09:05:32 -04:00
Paul Beckingham
f969bcbe59 DOM
- Extended DOM support:
    <id|uuid>.<date>.year
    <id|uuid>.<date>.month
    <id|uuid>.<date>.day
    <id|uuid>.<date>.week
    <id|uuid>.<date>.weekday
    <id|uuid>.<date>.julian
    <id|uuid>.<date>.hour
    <id|uuid>.<date>.minute
    <id|uuid>.<date>.second
    <id|uuid>.tags.<literal>
    <id|uuid>.annotations.<N>.entry
    <id|uuid>.annotations.<N>.entry.year
    <id|uuid>.annotations.<N>.entry.month
    <id|uuid>.annotations.<N>.entry.day
    <id|uuid>.annotations.<N>.entry.week
    <id|uuid>.annotations.<N>.entry.weekday
    <id|uuid>.annotations.<N>.entry.julian
    <id|uuid>.annotations.<N>.entry.hour
    <id|uuid>.annotations.<N>.entry.minute
    <id|uuid>.annotations.<N>.entry.second
    <id|uuid>.annotations.<N>.description
2014-06-06 19:43:20 -04:00
Paul Beckingham
4c3a59a333 Unit Tests
- Removed obsolete tests.
2014-06-06 17:07:19 -04:00
Paul Beckingham
61dab3eeb9 DOM
- Extended DOM.
2014-06-05 17:55:24 -04:00
Paul Beckingham
117c31b322 Unit Tests
- Added tests for blank values from missing DOM lookups.
2014-06-04 19:00:01 -04:00
Paul Beckingham
e6df1b38e2 DOM
- Standardized DOM interface to return success/failure, with the possibility
  of blank values. This matches the Eval::source callback interface‥
- Added more unit tests.
2014-06-04 18:57:36 -04:00
Paul Beckingham
850dbb36f0 Context
- ::clear now calls Parser::clear, which prevents the parse tree from growing
  with every shell command.
2014-06-03 01:31:25 -04:00
Paul Beckingham
512fe2f6c7 Variant
- ::operator_match and ::operator_nomatch now take a 'const Task&' argument to
  use for description/annotation matching.
- Updated unit tests.
2014-06-03 01:27:02 -04:00
Paul Beckingham
ca6940ba2e Variant
::operator_hastag now uses contextTask for resolution.
2014-06-03 01:10:58 -04:00
Paul Beckingham
56a70b00c4 Context
- No longer segfaults when ::initialize (argç, argv) is called with zero
  arguments, which is what the shell is doing.
2014-06-03 00:55:18 -04:00
Paul Beckingham
cd837a006c Task
- ::modify was not casting strings to dates for date types.
2014-06-03 00:42:21 -04:00
Paul Beckingham
1cd09bc87b Alias
- Implemented simple word substitution aliases. This is not the ultimate form
  which will involve the ability to insert arbitrary constructs.  Later.
2014-06-03 00:11:42 -04:00
Paul Beckingham
a470e50ee6 Variant
- Attempts legacy date conversion ahead of ISO.
2014-06-02 23:30:40 -04:00
Paul Beckingham
7196ac8554 Variant
- ::operator_match disobeyed rc.search.case.sensitive.
2014-06-02 23:15:25 -04:00
Paul Beckingham
ac07189941 Task
- ::modify was setting the wrong attribute value, namely the original, not the
  one that had passed through the expression evaluator's intestines.
2014-06-02 22:22:39 -04:00
Paul Beckingham
870e45be0d Lexer
- Extended Lexer to consider forms like '123.abc' as identifiers. This is
  essential to recignizing and extending DOM support.
2014-06-02 22:19:38 -04:00
Paul Beckingham
43718cbce5 Task
- Evaluates attribute values on modify.
2014-06-01 22:50:33 -04:00
Paul Beckingham
05d46b8345 TW-1331
- TW-1331 date more than 5 years away is faulty (thanks to Onion).
2014-06-01 20:08:32 -04:00
Paul Beckingham
6a0c61ad27 Portability
- Fixed wcwidth error in the #ifdef CYGWIN.
2014-06-01 19:39:28 -04:00
Paul Beckingham
55b5149be0 TW-72
- TW-72 extend info report with urgency column
2014-06-01 16:33:14 -04:00
Paul Beckingham
a1ba10d820 Unit Tests
- qw is not qq.  Cleanup now happens properly.
2014-06-01 13:25:29 -04:00
Paul Beckingham
91523b3574 Unit Tests
- Removed 'sleep' commands that slow down the test suite unnecessarily,
  by replacing them with specific timestamps in pending.data.
2014-06-01 13:16:39 -04:00
Paul Beckingham
7b3acbb81b Unit Tests
- Removed 'sleep' commands that slow down the test suite unnecessarily,
  by replacing them with specific timestamps in pending.data.
2014-06-01 13:00:04 -04:00
Paul Beckingham
eef39c3355 Unit Tests
- Removed sleep commands from wait.t, using specific timestamps in pending.data
  to speed up tests.
2014-06-01 12:30:19 -04:00
Paul Beckingham
c01d15d3b8 Unit Tests
- Replaced 'sleep' commands in the unit test (which slow things down too much)
  with pending.data lines with modified timestamps.
2014-06-01 11:39:03 -04:00
Paul Beckingham
92ba0055fb Unit Tests
- Removed useless setup/teardown tests, improving the signal to noise ratio.
2014-06-01 10:38:51 -04:00
Paul Beckingham
e1602057dd Unit Tests
- Removed useless setup/teardown tests, improving the signal to noise ratio.
2014-06-01 10:36:42 -04:00
Paul Beckingham
e70ec9f967 Unit Tests
- Removed useless setup/teardown tests, improving the signal to noise ratio.
2014-06-01 10:34:24 -04:00
Paul Beckingham
e1d6b84dcd Unit Tests
- Removed useless setup/teardown tests, improving the signal to noise ratio.
2014-06-01 10:32:38 -04:00