Commit graph

3499 commits

Author SHA1 Message Date
Paul Beckingham
68fb1136cc Lexer
- Added notes about additional lexeme types that are needed, long term.
2014-09-07 13:37:46 -04:00
Paul Beckingham
803ef4fee2 CmdCustom
- Report filters are now properly lexed, which includes the new typeTag.
2014-09-07 01:20:14 -04:00
Paul Beckingham
aab23692f1 Lexer
- Added a new type Lexer::typeTag.
2014-09-07 01:17:48 -04:00
Paul Beckingham
363baa34aa Parser
- Added disqualifier characters for UUID lists.
2014-09-06 23:45:09 -04:00
Paul Beckingham
cb080e70de Parser
- Added disqualifier for id sequences in the form of a set of acceptable
  characters.  Prevents strange problems due to the 'split' calls that are used
  in the implementation.
2014-09-06 23:40:57 -04:00
Paul Beckingham
7c8432d162 Code Cleanup
- util.cpp execute was assuming execvp was returning before freeing memory,
  which is a waste of time.
2014-09-06 22:28:04 -04:00
Paul Beckingham
b4438b4e8f TW-1400
- TW-1400 task "" gives a segfault (thanks to Scott Kostyshak).
2014-09-06 17:22:27 -04:00
Paul Beckingham
04b2378d57 Context
- Removed unreachable code.
2014-09-06 16:47:34 -04:00
Paul Beckingham
ecc528cbf3 L10N
- Marked certain uses of ucFirst as l10n-safe.
2014-09-06 16:11:54 -04:00
Paul Beckingham
de5f41c6c5 Duration
- Cleaned up source formatting.
2014-09-06 15:39:20 -04:00
Paul Beckingham
861cc83e6d TW-241
- TW-241 new column format; recur.short.
- All duration columns now default to compact ISO duration format.
2014-09-06 15:38:25 -04:00
Paul Beckingham
84d7fca53f Feedback
- Inverted the test, and improved it.
2014-09-06 14:41:49 -04:00
Paul Beckingham
11c013d88c Tw-1409
- TW-1409 Allow "1 of N tasks remaining" to be correctly localized (thanks to
          Jeremy John Reeder).
2014-09-05 16:51:00 -04:00
Paul Beckingham
a7cd985f23 TW-15
- TW-15 'task recurring' shows only children of recurring tasks (thanks to
        Louis-Claude Canon).
2014-08-31 17:04:35 -04:00
Paul Beckingham
259dd94775 Config
- Removed precautionary whitespace that was inserted into report filters when
  we discovered that problem with the parser.  Time to bravely eliminate this
  workaround.
2014-08-31 17:02:37 -04:00
Paul Beckingham
2e3be1c5a0 Task
- Now decodes backslashes on annotation add.
2014-08-31 13:26:06 -04:00
Paul Beckingham
bd4a7081c1 Task
- Now decodes backslashes on attribute set.
2014-08-31 13:25:46 -04:00
Paul Beckingham
4c98328277 JSON
- Corrected misleading comment.
2014-08-31 12:25:41 -04:00
Paul Beckingham
8b682d8565 Calc
- Now that Eval diagnostics in debug mode go to Context, they must be retrieved
  and displayed.
2014-08-31 11:20:46 -04:00
Paul Beckingham
7a85554924 TW-1405
- TW-1405 Add command _zshattributes (thanks to Roman Inflianskas).
2014-08-31 11:01:53 -04:00
Paul Beckingham
a77e50b441 Eval
- Converted from std::cout to Context::debug.  This is in preparation for
  supporting multiple debug levels.
2014-08-31 10:20:18 -04:00
Paul Beckingham
ad4d063252 Text Formatting
- Added another formatter.  Time for variadics?
2014-08-31 10:19:48 -04:00
Paul Beckingham
a894a3dedb TW-262
- TW-262 Attribute modifiers not working within parentheses (thanks to Johannes
         Schlatow).
2014-08-31 09:45:42 -04:00
Paul Beckingham
ae667a7e9e Code Cleanup
- Removed unused tips files, and associated references (thanks to dev-zero).
2014-08-31 09:20:21 -04:00
Jeremy John Reeder
41e6282052 French localization updates.
Signed-off-by: Paul Beckingham <paul@beckingham.net>
2014-08-31 08:47:43 -04:00
Jeremy John Reeder
aaeec413ab Esperanto localization updates.
Signed-off-by: Paul Beckingham <paul@beckingham.net>
2014-08-31 08:47:05 -04:00
Paul Beckingham
f5908f6514 Tree
- Simplified ::removeAllBranches, and in so doing, eliminated a segfault on
  some OSes.  No idea why.
2014-08-31 01:03:55 -04:00
Paul Beckingham
ebd7bf99f0 Portability
- Moved stdio.h to be (almost) first in the include order, to prevent and other
  include from in turn including stdio.h without first defining _WITH_GETLINE.
2014-08-31 00:05:08 -04:00
Paul Beckingham
60260fb813 Hooks
- Removed obsolete ::execute method, instead relying on the util.cpp variant.
2014-08-30 23:53:59 -04:00
Paul Beckingham
7a765b186e Portability
- Changed include ordering, for FreeBSD.
2014-08-30 23:44:51 -04:00
Paul Beckingham
df744d5c98 Code Cleanup
- Removed unused util.cpp ::execute variant.
2014-08-30 23:43:58 -04:00
Paul Beckingham
284146162f Portability
- Added _WITH_GETLINE for FreeBSD.
2014-08-30 23:38:11 -04:00
Paul Beckingham
b4ab5fcfac CmdCalendar
- Replaced code that tried to reuse the Context object to reparse the command
  line in order to run the calendar.details.report, with a fork/exec alternative
  that doesn't require acrobatics.
2014-08-30 23:33:47 -04:00
Paul Beckingham
07b7fe4541 Util
- Added new 'execute' function that provides input and captures output.
2014-08-30 23:31:23 -04:00
Paul Beckingham
273d9fe070 Hooks
- Code cleanup.
2014-08-30 23:29:30 -04:00
Paul Beckingham
820c327a81 Util
- Made arg vector const.
- Applied coding conventions.
2014-08-30 23:27:49 -04:00
Paul Beckingham
a503a02663 Parser
- Rewrote ::insertOr to only operate at the ORIGINAL node level, which is
  appropriate for this operation.
2014-08-30 15:36:08 -04:00
Jeremy John Reeder
a471120e18 Updated grammar in epo-RUS.h localization.
Signed-off-by: Paul Beckingham <paul@beckingham.net>
2014-08-30 15:02:26 -04:00
Paul Beckingham
40d72c3cd9 L10N
- Moved all the localizations into a subdirectory.  Because there are 7 now.
2014-08-28 17:25:10 -04:00
Paul Beckingham
2c8d795f21 L10N
- Added completed Esperanto translation (thanks to Jeremy John Reeder).
2014-08-26 23:40:34 -04:00
Paul Beckingham
d96c79f47c L10N
- Renamed epo-EPO to epo-RUS, which is where Esperanto originated.
2014-08-26 23:39:01 -04:00
Paul Beckingham
aa156412b5 Context
- Reorganized ::inintialize sequence regarding Parser::initialize and the need
  for the rc file to be loaded (and/or overridden) before full parsing could
  proceed.
2014-08-26 23:28:04 -04:00
Paul Beckingham
f87ead8804 Parser
- Fixed bug where ::findAttribute and ::findAttributeModifier were scanning
  all nodes, but thinking that '--' was a tag, not a raw value.
2014-08-26 23:26:49 -04:00
Paul Beckingham
3f519785d8 Parser
- Added static method to scan argv[] for overrides without a parse tree, so
  that any rc:<file> arguments can be used to locate the rc file, load it, and
  proceed with command line parsing which relies on things like rc.dateformat.
2014-08-26 23:25:08 -04:00
Paul Beckingham
7e460f10d1 Parser
- Removed parser upgrade diagnostics, as tw is now stable.
2014-08-24 16:46:39 -04:00
Paul Beckingham
59ffcd858e Parser
- ::findAttribute was not considering all nodes, and failed to remove the "?" tag.
2014-08-24 16:37:17 -04:00
Paul Beckingham
8b904a57f4 Parser
- ::findPattern was performing the wrong scan, and needed branch pruning outside
  the iterator loop.
2014-08-24 16:09:30 -04:00
Paul Beckingham
961b4ade9b Parser
- ::findPattern now scans all nodes.
2014-08-24 15:25:10 -04:00
Paul Beckingham
dac6a9ced5 Parser
- ::resolveAliases needs to scan all nodes.
2014-08-24 15:22:10 -04:00
Paul Beckingham
c446786d46 Parser
- ::getDataLocation needs to scan all nodes.  You'd think I'd learn this by now.
2014-08-24 15:17:14 -04:00