From 7e1e187d6c3a91d4ae063de4bed4daf01ebce6c6 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 4 Feb 2011 10:25:43 -0500 Subject: [PATCH] Export - Added the alias 'export.json' that maps to the _query command. --- ChangeLog | 1 + NEWS | 4 ++-- src/Config.cpp | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 365e7e0b5..3dcf4de03 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,7 @@ + Added ability to temporarily suspend GC (rc.gc:0) for a given command, which helps scriptwriters implement shadow files externally (thanks to Sander Marechal). + + Added alias 'export.json' that maps to the new _query helper command. + Added feature #30, which eliminates the dependency on ncurses (thanks to Johan Friis). + Added feature #41, XML export in the form of add-on script export-xml.pl, diff --git a/NEWS b/NEWS index e613703c1..0580eb94c 100644 --- a/NEWS +++ b/NEWS @@ -4,7 +4,6 @@ New Features in taskwarrior 1.9.4 - New burndown charts. - New 'count' helper command. - Inifinite width reports, when redirecting output. - - Regular expression support in filters and substitutions. - Added highlighting for the show command that indicates which values differ from the defaults. - Added change log display to the 'info' command. @@ -12,7 +11,8 @@ New Features in taskwarrior 1.9.4 value. - No more dependency on ncurses. - New '_query' helper command for script writers, which accepts a filter like - any other report, but returns unformatted JSON. + any other report, but returns unformatted JSON. The new alias 'export.json' + maps to the _query command. - Import can now read from files and URLs. - Assorted bug fixes. - New literal date "later" and "someday" to be used with the wait attribute to diff --git a/src/Config.cpp b/src/Config.cpp index 593dc4edf..d75bde203 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -290,6 +290,7 @@ std::string Config::defaults = "alias.ghistory=ghistory.monthly # Prefer monthly graphical over annual history reports\n" "alias.export=export.yaml # Prefer YAML over CSV or iCal export\n" "alias.export.vcalendar=export.ical # They are the same\n" + "alias.export.json=_query # The _query command will be used for all export\n" "alias.burndown=burndown.weekly # Prefer the weekly burndown chart\n" "\n" "# Fields: id, uuid, project, priority, priority_long, entry, start, end,\n"