Commit graph

1126 commits

Author SHA1 Message Date
Wilhelm Schuermann
8613a49f6e Import: Allow importing JSON arrays
- "export" defaults to JSON array output now.  Make "import" read it
  instead of throwing an error.
2015-07-16 12:37:38 +02:00
Paul Beckingham
b92802c2fb Entities: There is no spoon^H^H^H^H^Huda entity
- The code was trying to canonicalize 'attribute' and 'uda' separately,
  but there are no 'uda' entities.
2015-07-15 19:40:13 -04:00
Paul Beckingham
0990b0d582 TW-1575: task log mangles URLs when quoted
- Thanks to Luke Macken.
2015-07-13 10:41:55 -04:00
Paul Beckingham
012affa46a CmdUnique: New helper command to generate unique value lists 2015-07-12 22:03:00 -04:00
Paul Beckingham
987fab388d CmdCalc: Removed Eval::disambiguity 2015-07-01 17:53:44 -04:00
Paul Beckingham
4820bde41e CmdCalc: Eliminated temporary storage 2015-06-27 23:08:56 -04:00
Paul Beckingham
f96a42d8b0 Feature: Error on virtual tag modification attempt
- An attempt to add or remove a virtual tag is now an error (thanks to Scott M).
2015-06-27 18:39:50 -04:00
Paul Beckingham
b67b2ccc96 CLI2: Added ::addContextFilter, and supporting processing 2015-06-27 15:53:24 -04:00
Paul Beckingham
737cb23546 CLI2: Eliminated CLI
- This is a large commit, as all the changes are centered around the elimination
  of CLI.
- CLI is no longer compiled.
- Context no longer maintains CLI + CLI2.
- Filter now walks the parse tree and sends to Eval a
  std::vector <std::pair <std::string, Lexer::Type>> containing only args tagged
  with FILTER.
- Filter more efficiently sets/unsets Eval::debug, by doing it less often.
- The filterExpr.length() check is no longer meaningful, and instead the size of
  the std::vector above is used.
- Filter::pendingOnly performs better analysis.
- Filter::safety makes use of the std::vector size also.
- Task::modify makes use of 'canonical' rather than 'name', which is a policy
  change, not a fix.
2015-06-24 13:23:56 -04:00
Paul Beckingham
f305a973da CmdDenotate: Converted from CLI to CLI2 2015-06-22 14:47:26 -04:00
Paul Beckingham
f8ab97a07e CmdCustom: Converted from CLI to CLI2 2015-06-22 14:46:47 -04:00
Paul Beckingham
80052949d9 CmdUndo: Converted from CLI to CLI2 2015-06-17 01:41:35 -07:00
Paul Beckingham
f6f89ac333 CmdGet: Converted form CLI to CLI2 2015-06-17 04:16:19 -04:00
Paul Beckingham
cbf20217dc CmdTimesheet: Converted from CLI to CLI2 2015-06-16 21:54:38 -04:00
Paul Beckingham
bbaf8f4572 CmdSync: Converted from CLI to CLI2 2015-06-16 21:54:27 -04:00
Paul Beckingham
8a7b4440b5 CmdShow: Converted from CLI to CLI2 2015-06-16 21:54:17 -04:00
Paul Beckingham
a24269a0c9 CmdImport: Converted from CLI to CLI2 2015-06-16 21:54:06 -04:00
Paul Beckingham
72073b7515 CmdContext: Converted from CLI to CLI2 2015-06-16 21:53:51 -04:00
Paul Beckingham
1ab3f951c9 CmdColumns: Converted from CLI to CLI2 2015-06-16 21:53:16 -04:00
Paul Beckingham
af9e7fa7fa CmdCalendar: Converted from CLI to CLI2 2015-06-16 21:52:48 -04:00
Paul Beckingham
46060c63c9 CmdBurndown: Converted from CLI to CLI2 2015-06-16 21:52:31 -04:00
Paul Beckingham
672b6b0c66 CmdColor: Converted from CLI to CLI2 2015-06-16 21:46:41 -04:00
Paul Beckingham
f718ec90a5 CmdExec: Converted from CLI to CLI2. 2015-06-16 21:40:36 -04:00
Paul Beckingham
e36d358115 CmdCalc: Coneverted to CLI2::getWords 2015-06-14 23:24:11 -04:00
Paul Beckingham
8894dc1244 CmdConfig: Converted to CLI2::getWords 2015-06-14 23:22:27 -04:00
Paul Beckingham
e4ab3574e4 CmdCalendar: Converted from CLI::_args[0] to CLI2::_original_args[0] 2015-06-14 22:33:09 -04:00
Paul Beckingham
8a0bffc5b3 Merge branch '2.4.5' of ssh://git.tasktools.org/tm/task into 2.4.5 2015-06-07 15:34:52 -04:00
Paul Beckingham
2f1ca72334 Code: Improved comments regarding filters/args. 2015-06-07 15:34:33 -04:00
Wilhelm Schuermann
e95167a984 Plumbing: Use variadic templates for format()
- Use variadic templates, with a slight twist for properly supporting
  Taskwarrior's l10n strings.
- Adjust code that relied on implicit type conversion which led to
  problems with template instantiation.
- Move some functionality out of format() in order to keep it generic.
2015-06-07 20:54:02 +02:00
Wilhelm Schuermann
e4b9c1f01e Fix "task edit" dropping annotation text after newlines. 2015-06-05 22:25:48 +02:00
Renato Alves
21d5a7fbe8 Display the active context when listing known contexts 2015-06-04 20:14:14 +01:00
Wilhelm Schuermann
5f8469269e Cleanup: Remove unused function
- Unused since 2010, removed in accordance with Paul's wishes.
2015-05-31 16:41:57 +02:00
Wilhelm Schuermann
f4361d5c65 Import: Reuse CmdModify's checks
- Make updating tasks with "task import" run the same checks and update
  the same things as "task modify" would.
2015-05-31 16:36:53 +02:00
Wilhelm Schuermann
9067194390 CmdModify: Reorganize code for reuse
- Get "modify" checks ready for reuse by CmdImport's newly added update
  support.
- No changes in functionality, code reorganization only.
2015-05-31 16:25:07 +02:00
Wilhelm Schuermann
2a56e41fa9 Import: Skip unchanged tasks
- Re-importing the same file will now lead to no task changes.
  Previously the "modified:" attribute got updated each time an
  already imported file was imported again.
2015-05-30 12:40:38 +02:00
Wilhelm Schuermann
9d6067e2fe TW-303: Make "task import" update existing tasks 2015-05-29 19:49:54 +02:00
Wilhelm Schuermann
5f61703588 TW-1432: start/stop can be issued on completed tasks
- Make "start" set status to pending from completed/deleted.
- Add test to "start_NEW.t", which is to be combined with start.t once
  converted from Perl.
2015-05-28 10:11:12 +02:00
Wilhelm Schuermann
a78c9a6eb8 TW-1440: Implement "task import" from STDIN
- Read tasks from STDIN when no files are specified, or only "-"
  is specified.
2015-05-25 16:47:37 +02:00
Paul Beckingham
3e043291f0 Cleanup: Combined File, Path and Directory into FS
- The three objects are related and always travel together, so they are now
  combined.
2015-05-25 10:11:41 -04:00
Paul Beckingham
e8d04bdce6 C++11: N1984 auto 2015-05-24 13:36:26 -04:00
Wilhelm Schuermann
49f7612704 TW-1572: Implement better urgency inheritance
- Implement recursive urgency inheritance.  If this is to be made a
  default setting, some thought will have to be put into making it
  more efficient.
2015-05-22 23:01:21 +02:00
Paul Beckingham
5a57dfd70d C++11: Cleaned up commands code with range-based for 2015-05-11 17:45:15 -04:00
Paul Beckingham
b6b49ca7e4 Docs: Added comment to prevent changes 2015-05-03 10:54:52 -04:00
Paul Beckingham
8e01976abb Sync: Made more explicit exit codes for various errors 2015-04-26 13:28:53 -04:00
Paul Beckingham
1b63a2dde5 Documentation: Added the 'rc.obfuscate' setting.
- The 'obfuscate' setting, if set to '1' will replace all text with 'xxx'.
2015-04-26 11:14:05 -04:00
Paul Beckingham
b9a8d62324 Diagnostics: Removed 'Build caps' line 2015-04-26 09:30:44 -04:00
Paul Beckingham
dc8e874f19 Diagnostics: Removed obsolete items
- Removed '+pthreads' caps indicator.
- Removed HAVE_LIB defines for pthreads and readline.
- Removed CMake module for finding readline.
2015-04-26 09:17:31 -04:00
Paul Beckingham
21407e0ca2 TW-1595: info command doesn't print urgency details, if urgency is negative
- Thanks to Peter Rochen.
2015-04-12 10:13:15 -04:00
Paul Beckingham
33738af3e4 Show: Removed obsolete settings. 2015-04-06 19:59:54 -04:00
Paul Beckingham
119c19b519 TW-1591: add and option to see non-pending project with command task summary
- Setting 'summary.all.projects' shows all projects, not just those with pending
  tasks.
2015-04-06 15:47:02 -04:00