Commit graph

4198 commits

Author SHA1 Message Date
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
c0efa0f4d7 L10N: Removed unused strings, add string missing from fra-FRA.h 2015-04-06 20:19:25 -04:00
Paul Beckingham
33738af3e4 Show: Removed obsolete settings. 2015-04-06 19:59:54 -04:00
Fidel Mato
f684917c3c L10N esp-ESP
- Added two missing strings and its translation.
- Order changed to follow eng-USA.h
2015-04-06 19:54:44 -04:00
Fidel Mato
876a7d29b9 L10N esp-ESP
- Newly translated string from eng-USA to esp-ESP, and some corrections.
2015-04-06 19:54:38 -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
Paul Beckingham
935b2993f3 C++11: Took advantage of N1757. 2015-04-06 15:30:39 -04:00
Paul Beckingham
0cba34268c Build: Fixed broken compile 2015-04-05 16:08:33 -04:00
Paul Beckingham
61e1401073 Performance: Only measures the first fixed-width column row 2015-04-05 16:05:43 -04:00
Paul Beckingham
a883c5ca41 Themes: Updated the built-in default theme regarding priority 2015-04-05 15:17:33 -04:00
Paul Beckingham
0a54d46589 Hooks: With rc.debug.hooks=2, shows hook arguments 2015-04-05 12:19:55 -04:00
Paul Beckingham
3f457dc744 Info: Don't print an urgency detail table is the value is zero 2015-04-05 12:00:08 -04:00
Paul Beckingham
f9c99624b2 Info: Properly breaks out urgency values for UDA coefficients 2015-04-05 11:56:55 -04:00
Paul Beckingham
5da3416b79 TW-70: urgency.user.keyword.<keyword>.coefficient=...
- The 'urgency.user.keyword.<keywrod>.coefficient' setting allows for urgency
  adjustments based on description keywords.
2015-04-05 10:25:42 -04:00
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
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
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
Paul Beckingham
96c448ca1e Lexer: Corrected off-by-one error in ::isTripleCharOperator 2015-03-29 23:07:18 -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
9e6c6ecb93 TW-1583: Invalid ID displayed after done/delete
- Fix completed/deleted tasks getting an ID when GC is going to be run,
  previously resulting in invalid IDs being displayed in reports that
  show non-pending tasks.

A side effect of this fix is that it is sometimes not possible to
filter by ID when running a report right after calling done/delete.
This problem existed before; this change makes it happen on the first
report instead of the second, so it is more consistently broken.
Commands that modify tasks are not affected, making this an annoying
yet harmless defect.
2015-03-28 10:36:58 +01:00
Tomas Babej
20eaa312e6 localization: Fix inconsisitent case in the legend of History commands 2015-03-27 19:23:22 -04:00
Wilhelm Schuermann
d2e6c90446 TW-1581: Wrong urgency after done/delete command
- TDB2::dependency_scan() is run before GC, so we need to check both
  tasks in a dependency chain for their status before setting the
  blocking/blocked flag to true.
2015-03-26 18:43:58 +01:00
Paul Beckingham
96922231b8 Merge branch '2.4.3' into lexer2 2015-03-25 07:52:36 -04:00
Wilhelm Schuermann
55db1239bd Info: Hide "modified" attribute changes
- The info report shows modifications already.  "modified" attribute
  updates are implied by other attributes being changed, so there
  is no need to clutter the report with them.
2015-03-23 16:28:53 +01:00
Wilhelm Schuermann
4f75652ccb TW-1580: "modified" attribute not updated
- Make all local modifications update the "modified" attribute.
- As per design, the user cannot overwrite this attribute; neither
  can hooks.
2015-03-23 15:55:47 +01:00
Tomas Babej
7babc9c5b1 Command: Let zero bulk denote infinite value 2015-03-22 10:10:08 -04:00
Paul Beckingham
24a1cbefe9 Merge branch '2.4.3' into lexer2 2015-03-20 17:16:48 -04:00
Paul Beckingham
289780c8cc Lexer: Added comments 2015-03-20 17:16:00 -04:00
Paul Beckingham
25c687e1ec Themes
- Updated default theme to match dark-16 or dark-256.
2015-03-15 12:16:40 -04:00
Tomas Babej
1465bcb918 Context: Do not apply context for the export command 2015-03-14 17:28:20 -04:00