Commit graph

6155 commits

Author SHA1 Message Date
Paul Beckingham
79207a8e42 Info: A '+' symbol was shown instead of a '*', for urgency details 2015-04-05 10:22:56 -04:00
Paul Beckingham
5af4579741 Priority: Converted 'priority' attribute to a UDA
- 'priority.long' and 'priority.short' formats now map to 'priority', and
  generate a warning.
- Man page updated.
- Converted priority urgency coefficients to UDA equivalents.
- Converted priority color rules to UDA color rules.
- Removed 'default.priority' support.
- Removed special sort handling for 'priority' field in Variant, added special
  UDA sort handling.
- Removed ColPriority.{h,cpp} source files.
- Removed asorted newly-unused variables.
- The 'show' command now highlights unused priority settings.
- Removed unused localized priority-relateѕ strings.
- Added legacy mapping for columns and sort columns for 'priority.long' and
  'priority.short' columns in report definitions.
- Removed priority color rules implementation.
- Removed obsolete tests for #860, #990, custom.priority_long.t.
- Updated various tests that set priority default, colors.
2015-04-04 19:30:33 -04:00
Paul Beckingham
7a9d314016 Variant: Temporarily put back the priority string handling
- In order to test that the UDA sorting is good, the priority processing must
  be in place, as many test rely on priority values. Will be removed later.
2015-04-04 16:16:51 -04:00
Paul Beckingham
07a18f4fae Tests: UDA sort tests 2015-04-04 15:48:01 -04:00
Paul Beckingham
29a09707f3 Variant: Implemented custom UDA sorting 2015-04-04 15:47:41 -04:00
Paul Beckingham
743cb92958 Context: Static initialize UDA sort order values 2015-04-04 14:50:38 -04:00
Paul Beckingham
370afa0d26 Sort: Delegate UDA string sorting to Variant::operator< 2015-04-04 12:53:06 -04:00
Paul Beckingham
8c0f46309b Variant: Return const refs rather than string copies 2015-04-04 12:51:56 -04:00
Paul Beckingham
fa7d4352cd Sort: All attributes are now sortable 2015-04-04 11:15:43 -04:00
Paul Beckingham
f1ef53bea0 Column: Return const refs rather than string copies 2015-04-04 10:58:55 -04:00
Paul Beckingham
21dc2ec100 UTF8: Moved variable into lower scope 2015-04-04 09:55:54 -04:00
Wilhelm Schuermann
5b01abc27f Fix problem with special chars in descriptions
Fix 'task add a; task add "\n"; task next' returning "Unknown error."
The problem can be reproduced with any report including "description"
as a column.

For task descriptions that had more special characters than regular
ones, "length" in utf8_width() underflowed, leading to problems
elsewhere in the code.
2015-04-03 22:22:44 +02:00
Wilhelm Schuermann
c830b4b669 TW-1287: default.* values applied to synced tasks
- Tasks that arrive through "task sync" no longer have defaults applied
  to them.
2015-04-02 13:39:20 +02:00
Wilhelm Schuermann
70d5f595c7 TW-1584: attr.{isnt,not} use partial matching
- Change attr.{isnt,not} to be the exact opposite of attr{:is,:},
  i.e. exact matching.
- Fix tests that assumed the old behavior was intended.
2015-04-02 13:38:04 +02:00
Wilhelm Schuermann
c1815b8277 TW-1279: default.* applies to recurring tasks
- Recurring tasks inherit attributes from their parent.  default.*
  is no longer applied to them.
2015-04-02 13:37:59 +02:00
Wilhelm Schuermann
2eea7805c6 Lexer: Fix "task calc now+3days" error
- Fix isDuration() consuming operators, leading to evaluation errors.
  Previously only "task calc now + 3days" worked, now the spaces are
  entirely optional.
2015-04-02 13:29:57 +02:00
Wilhelm Schuermann
5487414003 Hooks: Add "version:" to hooks v2 arguments
- Saves a call to "task --version", potentially saving precious hook
  execution time.  Useful for writing backwards compatible hooks in
  case of buggy Taskwarrior behavior.
2015-04-02 09:18:34 +02:00
Wilhelm Schuermann
229078ffed Scripts: Disable hooks in bash completion script
- Stop on-launch and on-exit hooks with output from interfering with
  bash completion.
2015-04-01 16:23:42 +02:00
Wilhelm Schuermann
04d0c52a43 Hooks: Implement "Hooks v2" API
- All hook scripts now receive key:value pair command line arguments.
- Add only the basics: api, args, command, rc, data.  Possibly more to
  come.
2015-04-01 11:44:37 +02:00
Wilhelm Schuermann
5d4859c44d Tests: Fix bash_completion.t problem
- bash_completion.t rewrites task.sh during setup in order to be able
  to test it.  704eb1eab3 broke that
  rewrite mechanism.
2015-03-31 11:28:12 +02:00
Wilhelm Schuermann
3f394fa164 TW-1588: Fix broken export scripts 2015-03-31 07:26:10 +02:00
Wilhelm Schuermann
df209b9b8b TW-1587: Further improve example on-exit hook
- Initial patch was not quite right.  on-exit _does_ receive added and
  modified tasks on STDIN, but is not allowed to return JSON.
2015-03-31 07:25:23 +02:00
Jochen Sprickerhof
c27f5d23b6 Hooks: Remove read loop from example on-exit hook
There is no input to the on-exit script. Prevents error:
"Hook Error: Expected 0 JSON task(s), found 1"

Signed-off-by: Wilhelm Schuermann <wimschuermann@googlemail.com>
2015-03-30 21:38:25 +02:00
Wilhelm Schuermann
df3f8ead11 TW-1579: Add INSTALL note for OpenBSD 2015-03-30 21:17:36 +02:00
Wilhelm Schuermann
bc335e8075 Add-Ons: Fix export-html.pl for new export format 2015-03-30 09:41:45 +02:00
Paul Beckingham
e0f3e6d328 Tests: Corrected test that assumes lines are longer than they are 2015-03-29 23:52:34 -04:00
Paul Beckingham
eb35386d76 Tests: Recategorized lexemes that are only dates in the presence of Eval 2015-03-29 23:14:59 -04:00
Paul Beckingham
96c448ca1e Lexer: Corrected off-by-one error in ::isTripleCharOperator 2015-03-29 23:07:18 -04:00
Paul Beckingham
71fea510bb Tests: Corrected lexer test "\"" 2015-03-29 23:02:59 -04:00
Paul Beckingham
1e411ed4b8 Tests: Corrected lexer text '\'' 2015-03-29 23:01:33 -04:00
Paul Beckingham
cfbdd4bc05 Tests: Corrected lexer test "\"three\"" 2015-03-29 22:59:27 -04:00
Paul Beckingham
5af3f71ac5 Lexer: Fixed /from/to/g detection at EOS 2015-03-29 22:56:34 -04:00
Paul Beckingham
8b863c9764 Lexer: Fixed /pattern/ detection at EOS 2015-03-29 22:53:38 -04:00
Paul Beckingham
9630b76990 Build: Resolve warnings from flod build 2015-03-29 18:21:33 -04:00
Paul Beckingham
690d9493f0 Build: Resolve some more compiler warnings 2015-03-29 18:03:36 -04:00
Paul Beckingham
73f4f55e0a Merge branch '2.4.3' of ssh://git.tasktools.org/tm/task into 2.4.3 2015-03-29 17:30:06 -04:00
Paul Beckingham
267f054449 Duration: Some units were not marked as standalone 2015-03-29 17:25:08 -04:00
Wilhelm Schuermann
7a64c19641 Resolve most compiler warnings 2015-03-29 22:05:38 +02:00
Wilhelm Schuermann
b8105812fc CMake: Enable compiler warnings 2015-03-29 22:04:48 +02:00
Paul Beckingham
f454a02224 Tests: Added more Lexer::Type::date tests 2015-03-28 16:57:34 -04:00
Paul Beckingham
1bbe709e38 Tests: Removed redundant LExer::Type::tag tests 2015-03-28 16:53:32 -04:00
Paul Beckingham
a4b96a3191 Tests: Added Lexer::Type::op tests, a full set 2015-03-28 16:49:57 -04:00
Paul Beckingham
ddb6014358 Tests: Converted Lexer::Type::duration tests 2015-03-28 16:38:17 -04:00
Paul Beckingham
31a7a3343b Tests: Converted ordinal tests 2015-03-28 16:26:50 -04:00
Paul Beckingham
3a0971f290 Tests: Added Lexer::Type::tag test for +@tag 2015-03-28 16:23:02 -04:00
Paul Beckingham
fee58b0eb6 Tests: Added Lexer::Type::operator tests, removed old ones 2015-03-28 16:21:25 -04:00
Paul Beckingham
9adf3fc0fa Tests: Added Lexer compound token expression tests 2015-03-28 12:05:45 -04:00
Paul Beckingham
39d330631d Tests: Added Lexer::Type::date tests 2015-03-28 12:05:17 -04:00
Paul Beckingham
b41d7c4582 Tests: Added Lexer::Type::duration tests 2015-03-28 11:40:31 -04:00
Paul Beckingham
12eca4b2cc Tests: Added Lexer::Type::op tests 2015-03-28 11:38:03 -04:00