Commit graph

5184 commits

Author SHA1 Message Date
Paul Beckingham
5cd79d08b3 CmdHelp: Removed redundant arg checks 2015-09-06 02:10:05 -04:00
Paul Beckingham
58ec954d11 CmdExport: Removed redundant arg checks 2015-09-06 02:08:36 -04:00
Paul Beckingham
ea1ce4fad5 CmdEdit: Removed redundant arg checks 2015-09-06 02:06:37 -04:00
Paul Beckingham
283f9bb2bc CmdDiagnostics: Removed redundant arg checks 2015-09-06 02:01:33 -04:00
Paul Beckingham
a7fd5de5c3 CmdUndo: Removed redundant arg checks 2015-09-06 01:58:49 -04:00
Paul Beckingham
826d00d33f CLI2: Can now detect unwanted args in ::categorizeArgs 2015-09-06 01:56:59 -04:00
Paul Beckingham
3897c23c8d CLI2: Prevent loops
- Context was sometimes causing looping:

    ::analyze -> ::addContexFilter -> ::addFilter -> ::analyze

  This is prevented by a simple latch.
2015-09-06 01:42:30 -04:00
Paul Beckingham
7da3f3b2ba CLI2: Moved arg categorization earlier in the processing
- Moving categorization (FILTER, MODIFICATION, MISCELLANEOUS) int ::analyze,
  instead of waiting until ::prepareFilter means that all commands now have
  access to categorized args. This means there is no need to repeatedly scan
  and skip over 'rc:' etc.
2015-09-06 01:02:06 -04:00
Paul Beckingham
5ae32dd036 CLI2: 'info' was tagged 'DEFAULT' and should have been 'ASSUMED' 2015-09-06 00:13:44 -04:00
Tomas Babej
e0a808a6ba commands: Colorize only if color=on is set
Commands 'columns', 'commands' and 'custom' would output color
escape sequences desipte color=off being set.
2015-09-05 20:18:58 -04:00
Paul Beckingham
44afdb89e3 CmdImport: Tyo 2015-09-05 18:27:36 -04:00
Tomas Babej
6c7aecc2a6 CmdImport: Neglect attributes with dynamic default values
If not explicitly stated on import, values with default dynamic
values (such as modified, entry or end) can produce a false
notion of incoming 'modified' data, where the only difference
between the data in the database and data being imported is
that the dynamic defaults differ, since they have been
generated at different times.

Solve the issue by neglecting the attributes with dynamic defaults,
if they have been generated.
2015-09-05 18:25:12 -04:00
Tomas Babej
ab40fae67e TDB2: Only ever update task if it differs from original 2015-09-05 17:20:20 -04:00
Tomas Babej
4042cbf964 feedback: Replace taskDiff method by Task inequality operator 2015-09-05 17:19:18 -04:00
Tomas Babej
efab724802 Task: Convince myself Task comparison is implemented correctly 2015-09-05 17:19:13 -04:00
Paul Beckingham
98991c1c1a Command: Defaulted ::_uses_context to false, which is predominant setting
- It's actually not yet predominant, but it looks like it will be. Since the
  introduction of the context feature, subsequent changes have been made to
  restrict it's influence. It appears that ultimately ゐt will only affect
  reports, but currently enjoys a broader scope.
2015-09-05 15:27:04 -04:00
Paul Beckingham
28d0c534b1 CmdContext: Added 'const' for method args that are const 2015-09-05 14:39:52 -04:00
Paul Beckingham
9b786de5be CLI2: Clarified intent for demotion 2015-09-04 17:14:50 -04:00
Paul Beckingham
a82927cb54 CLI2: Refactored some of ::prepareFilter into ::categorizeArgs 2015-09-04 17:14:50 -04:00
Tomas Babej
56aad60a41 CmdShow: Update the list of supported config values 2015-09-04 08:15:53 -04:00
Tomas Babej
a08d354971 Urgency: Add backwards compatible handling of next coefficient 2015-09-04 08:10:45 -04:00
Tomas Babej
6b83945a21 Urgency: Replace 'next' coefficient with configuration entry 2015-09-04 08:10:36 -04:00
Paul Beckingham
288bd81d8f CmdShow: Added 'rule.color.merge' as a valid configuration setting 2015-09-04 07:58:36 -04:00
Tomas Babej
7bea132bd5 Color: Remove redundant flag in colorize method 2015-09-04 00:32:10 -04:00
Tomas Babej
99b650a3ba Color: Remove support for underscores in color values
Values like 'on_red' will no longer work.

This feature has been deprecated since 2009.
2015-09-04 00:27:01 -04:00
Paul Beckingham
8536dc9658 Rules: Added parens to fix conditional 2015-09-04 00:10:34 -04:00
Tomas Babej
7989177f7c colors: Add rule.colors.merge 2015-09-03 16:19:20 -04:00
Paul Beckingham
4008a64fdd Virtual Tags: New 'PROJECT', 'PRIORITY' and 'LATEST' virtual tags
- Added documentation.
2015-08-31 16:54:18 -04:00
Paul Beckingham
ada6c24789 Virtual Tag: Undocumented, experimental support for 'LATEST' 2015-08-31 12:59:44 -04:00
Paul Beckingham
28d872dd31 CmdCommands: Added command description column
- Shrunk the default widths of all the columns, for better spacing.
2015-08-29 12:32:17 -04:00
Paul Beckingham
70b252f280 CmdColumns: Added 'type' 2015-08-28 09:18:36 -04:00
Paul Beckingham
6c643d66dd CmdCustom: 'rc.report.<report>.sort:none' now retains UUID order only 2015-08-28 07:36:04 -04:00
Paul Beckingham
ec0728ff8e Filter: Implemented ::hasMiscellaneous 2015-08-28 07:24:50 -04:00
Paul Beckingham
3f4daeacf0 TW-1670: Reversed ranges are parsed as a mathematician would expect
- Thanks to Daniel Shahaf.
2015-08-27 23:22:28 -04:00
Paul Beckingham
c61f7e6b8f Footnote: New 'recur' verbosity token 2015-08-23 20:36:06 -04:00
Paul Beckingham
b1839adf97 TW-1664: Notify of waiting→pending promotion
- Thanks to Daniel Shahaf.
2015-08-23 16:59:22 -04:00
Paul Beckingham
4a9a515a36 Context: Corrected ::dispatch determination of need for CLI2::prepareFilter 2015-08-23 09:45:11 -04:00
Paul Beckingham
274d3dddd0 CLI2: Simplified logic for separating FILTER, MODIFICATION, MISCELLANEOUS args 2015-08-23 09:44:02 -04:00
Paul Beckingham
62a66bad9c CLI2: Corrected detection of MISCELLANEOUS args 2015-08-22 13:31:55 -04:00
Paul Beckingham
bc1aa0bc0f TW-1666: import should reject invalid data
- Thanks to Daniel Shahaf.
2015-08-22 12:34:10 -04:00
Paul Beckingham
d640fed3d4 Task: 'wait:' bug fix
- When 'wait:' is specified, it no longer sets 'status:waiting' because there
  is no value.  Thanks to Daniel Shahaf.
2015-08-22 12:16:45 -04:00
Paul Beckingham
54fecafcec Context: Eliminated 'readcmd' and 'writcmd' entities 2015-08-22 11:09:29 -04:00
Paul Beckingham
018592abac CLI2: Colored diagnostics for MISCELLANEOUS args 2015-08-22 11:03:08 -04:00
Paul Beckingham
f850e0946b CmdUnique: Converted to use CLI2::getWords 2015-08-22 11:02:35 -04:00
Paul Beckingham
257edc535a CLI2: Eliminated READCMD/WRITECMD tags
- Now tags command with DNA.
2015-08-22 08:29:23 -04:00
Paul Beckingham
4e9ec1b320 Task: Segfault protection 2015-08-22 07:45:10 -04:00
Paul Beckingham
23318103ed CmdCustom: Special case sequence override 2015-08-17 19:14:58 -04:00
Paul Beckingham
1ec650edd2 Help: Clarified attribute modifiers in help 2015-08-17 08:55:23 -04:00
Paul Beckingham
358e0cc62d Modifiers: "is" and "isnt" are now exact/inexact operators 2015-08-17 08:09:40 -04:00
Paul Beckingham
733e4e5aff Task: Code cleanup 2015-08-15 23:51:34 -04:00