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
Renato Alves
dda190703e
Tests - merge basic.t with version.t and convert to python
...
* _version now outputs "2.4.2 (git-ref)" instead of only "git-ref" when building from git.
* Changelog updated accordingly.
2015-03-09 16:02:26 +00:00
Paul Beckingham
29dff399bd
Merge branch '2.4.2' into lexer2
2015-03-07 17:36:10 -05:00
Paul Beckingham
a75c293286
Merge branch '2.4.2' into lexer2
2015-03-07 17:33:23 -05:00
Paul Beckingham
7826c7b988
CLI
...
- Added Lexer::Type arg to ::addArg, for future capture of type.
- Cleaned up code formatting from patch.
2015-03-07 17:29:08 -05:00
Paul Beckingham
d202691638
Lexer
...
- Improved comment.
2015-03-07 10:09:58 -05:00
Paul Beckingham
c9d61ff71b
Duration
...
- Made list of units static.
2015-03-06 21:15:50 -05:00
Paul Beckingham
e11b333a0b
Lexer
...
- ::isPath was not observing the null character string terminator.
2015-03-05 21:22:40 -05:00
Paul Beckingham
5e8426f0cc
Config
...
- The 'next' report was not sㄡrted by urgency, which is wrong (thanks
to Adam Coddington).
2015-03-05 18:26:43 -05:00
Wilhelm Schuermann
138360b7bc
Hooks
...
- Fixed on-modify hook regression which stopped hooks from modifying
tasks. On a related note, more hooks tests are definitely needed.
2015-03-05 07:21:30 -05:00
Paul Beckingham
96185cbd61
Merge branch '2.4.2' of ssh://git.tasktools.org/tm/task into 2.4.2
2015-03-02 16:17:09 -05:00
Paul Beckingham
7665d13d42
Duration
...
- Removed legacy duration value mapping, which causes much performance
degradation.
2015-03-02 16:16:39 -05:00
Paul Beckingham
01feec568b
Merge branch '2.4.2' of ssh://git.tasktools.org/tm/task into 2.4.2
2015-03-02 09:35:45 -05:00
Paul Beckingham
104aeb3905
TDB2
...
- Commented and reorganized for threading.
2015-03-02 09:33:57 -05:00
Paul Beckingham
53e9bd0cbd
Lexer
...
- Words cannot contain single-char operators.
2015-03-02 00:03:01 -05:00
Paul Beckingham
237d932ff9
Lexer
...
- Improved ::isIdentifier, ::isUUID and ::isDOM.
2015-03-01 23:54:45 -05:00
Paul Beckingham
2af470bb90
Lexer
...
- Lexer::Type::identifier now includes DOM references.
2015-03-01 22:08:19 -05:00
Paul Beckingham
cefc129e9a
Task
...
- Delegated the modifiability check to Column::modifiable.
2015-03-01 21:36:56 -05:00
Paul Beckingham
309b607672
Lexer
...
- Number digits followed by non-whitespace, non-operators are not numbers, ie
"2nd" is not "2","nd".
2015-03-01 16:03:10 -05:00
Tomas Babej
f0cc0151b7
TDB2: Explicitly mark updates done as addition to optimize performance
...
We are able to avoid loading the completed.data in certain scenarios.
2015-02-28 16:54:09 -05:00