Commit graph

9428 commits

Author SHA1 Message Date
Tomas Babej
0c22823771 tests: Ensure virtual tags +PENDING and +WAITING are working as before TW-2563 2021-08-08 14:27:25 -04:00
Tomas Babej
582bee66e9 DOM: Implement special-cased status handling
This is required for status:pending filters not matching the tasks with
the virutal waiting tag.
2021-08-08 14:27:25 -04:00
Tomas Babej
7d81eadd5a tests: Add test for the migration path from 2.5.3 2021-08-08 14:27:25 -04:00
Tomas Babej
db324c41e3 TF2: Upgrade waiting tasks to pending, if applicable
This can be safely removed in one of the later releases (likely 3.1 or
later).
2021-08-08 14:27:25 -04:00
Dustin J. Mitchell
901283c79f [WIP] make 'waiting' status a 'virtual' status 2021-08-08 14:27:25 -04:00
sebu06
1d81e5e3ee Configuration override of settings for context
Every configuration parameter can be overwritten for the
current context by setting the parameter:

context.<name>.rc.<parameter> = <value>

in the config file. This allows for example to set a custom
report for each context.
2021-08-05 13:22:17 +02:00
Dustin J. Mitchell
20041c120e Refactor to store tags as individual attributes
Each tag is stored as `tag_<tagname>: x`.  The `x` is required because
empty attributes are treated as nonexistent.

For compatibility, the `tags` attribute is updated in sync with the
per-tag attributes.  This compatibility support may be dropped in later
versions.

Note that synchronization _updates_ use JSON format, which does not
change with this patch, and thus no compatibility issues exist.  The
synchronization _initialization_, however, uses FF4, meaning that a
sync server initialized from a version of `task` with this patch will
contain `tag_<tagname>` attributes, which will look like orphaned UDAs
to older versions.  However, as updates to tasks are synchronized via
the sync server, the updates will not contain these attributes and they
will show as "deleted" in the `task info` display on the older version.
Aside from the noise in the `task info` output, this is harmless.
2021-08-05 02:11:27 -04:00
Rosen Penev
17e6257e07 more emplace
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-08-05 02:03:59 -04:00
Rosen Penev
5c137f5c8f use emplace
Allows removing the constructor name as emplace forwards the arguments
directly.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-08-05 02:03:59 -04:00
Tomas Babej
bf93c28919 docs: Document #2247 2021-07-31 14:23:22 -04:00
Tomas Babej
9b8cbace45 tests: Add test for TW #2247 2021-07-31 14:23:22 -04:00
Korrat
b33a99a748 Nag based on task state before modification
With this patch, taskwarrior uses the urgency of tasks before any
modifications are applied when deciding whether to show nag messages.

Previously, taskwarrior would apply modifications before deciding
whether to show nag messages, which could lead to spurious nag messages
when completing an active task.
2021-07-30 18:56:25 -04:00
Scott Mcdermott
607baa081d CmdInfo: fix missing spaces causing run-on in virtual tag list
without the fix, when listing out the tags we would see output like:

    Virtual tags  PENDING PROJECTREADY TAGGED UDA UNBLOCKED

there isn't a PROJECTREADY tag of course, but rather a missing space
2021-07-23 17:07:11 -04:00
sebu06
3d61966831 Added coloring of dates with scheduled tasks
Color can be changed using color.calendar.scheduled
2021-07-20 07:38:14 -04:00
sebu06
90bc7f4b23 Fixed rendering of countdown columns
Countdown columns were counting up days instead of down.
2021-07-19 20:07:30 -04:00
sebu06
69b34dcef3 using convenience function for paying attention to verbosity tokens 2021-07-18 15:09:52 -04:00
Sebastian Uharek
bd2ad97ccb Added output of number of tasks to be modified in batch mode 2021-07-18 15:09:52 -04:00
Scott Mcdermott
178c17d032 tests: Add tests for bug #2519 2021-07-18 09:45:00 -04:00
Scott Mcdermott
07e2c23a91 tests: Add test cases for 'by' date attribute modifier 2021-07-18 09:45:00 -04:00
Scott Mcdermott
4738f25d59 AUTHORS: Add Scott Mcdermott among authors
Scott added date attribute filter modifier 'by'
2021-07-18 09:45:00 -04:00
Scott Mcdermott
3948484cf5 docs: Document TW #2536 2021-07-18 09:45:00 -04:00
Scott Mcdermott
ac3572a4f5 CLI2: New filter attribute modifier "by", uses '<=' for comparison
This patch allows e.g. due.by:tomorrow that includes all of tomorrow,
because it uses less than or equal to, rather than just less than, like
'before' modifier does.  This allows matching the last second of the day
when filtering by "due.by:eod", and more generally allows date filters
with an inclusive end-interval specification.

Closes #2536
2021-07-18 09:45:00 -04:00
Vladyslav Tronko
af6f2b55ec Fix matching project name during urgency calculation 2021-07-17 16:21:59 -04:00
Tomas Babej
9c2affa0cb libshared: Bump to fix build on OS-X
See [0] and [1] for reference.

[0]: https://github.com/GothenburgBitFactory/libshared/pull/43
[1]: https://github.com/GothenburgBitFactory/libshared/pull/44
2021-07-12 23:02:01 -04:00
Tomas Babej
171a586a3f
libshared: Bump version to enforce safer file writes
Part of a solution for #152.
2021-07-11 20:28:21 -04:00
Tomas Babej
bc9888fc5e Changelog: Document TW #2530 2021-07-10 07:24:57 -04:00
Tomas Babej
79c860053b tests: Add a regression test for #2530 2021-07-10 07:24:57 -04:00
Tomas Babej
85a6c90c2b AUTHORS: Add Pablo among authors
Pablo reported regression TW #2519.
2021-07-03 10:47:38 -04:00
Tomas Babej
dc5e925b43 docs: Document TW #2519 2021-07-03 10:47:38 -04:00
Tomas Babej
fb208cf494 tests: Fix incorrect test constant 2021-07-03 10:47:38 -04:00
Tomas Babej
11b85373ee tests: 'eoy' is the last second of the year 2021-07-03 10:47:38 -04:00
Tomas Babej
9d80570073 libshared: Bump version
This brings back behaviour of "end of" named dates to point to the last
second of the given date.

Closes #2519.
2021-07-03 10:47:38 -04:00
Tomas Babej
8b1cc98d05 Changelog: Document TW #2514 2021-06-26 14:38:18 -04:00
Tomas Babej
3cbbe7e701 docs: Add reportaman to authors 2021-06-26 14:38:18 -04:00
Tomas Babej
d76b4e0d86 tests: Add test for TW #2514 2021-06-26 14:38:18 -04:00
Tomas Babej
cc0ba46873 feedback: Consider start and end attributes when reporting task durations
Instead of relying on the modification times, we can use the values of
the start and end attributes, if available.

This allows us to perform historical changes that result in correct
duration intervals reported by task info.

Closes #2514
2021-06-26 14:38:18 -04:00
Tomas Babej
a519cf59f2 docs: Document TW #1804 2021-06-23 00:13:03 -04:00
Tomas Babej
88eca5f535 tests: Add test for TW #1804 2021-06-23 00:13:03 -04:00
Tomas Babej
8f7e41b392 parseJSON: Allow annotations with missing entry values
This relaxes previous stringent requirements on the input values during
import.

Closes #1804.
2021-06-23 00:13:03 -04:00
Tomas Babej
6d81acd355 parseJSON: Ensure NULL values from failed lookups do not persist
The operator[] insets values if the lookup fails, which creates null
pointers.

See: https://en.cppreference.com/w/cpp/container/map/operator_at
2021-06-23 00:13:03 -04:00
Tomas Babej
75422e80e3 reproduce: Add gdb into the image 2021-06-23 00:13:03 -04:00
Tomas Babej
388a8917ba ChangeLog: Document #1938 2021-06-19 12:29:41 -04:00
Tomas Babej
3bf714e715 tests: Add test for TW #1938 2021-06-19 12:29:41 -04:00
Tomas Babej
c8560a8c96 test: Make all tests executable 2021-06-19 12:29:41 -04:00
Tomas Babej
a219bd30cf Task: Bump annotations with duplicate entry values
Since annotations are stored as a map, duplicate entry values lead to
data loss (i.e. annotations overriding each other on import). Perhaps
the choice of using a map internally should be reconsidered.

Closes #1938.
2021-06-19 12:29:41 -04:00
Tomas Babej
3fed9e9abb
README: Add sponsoring section 2021-06-19 11:48:17 -04:00
Tomas Babej
dbcf2c4fe0
README: Add sponsors badge 2021-06-19 07:42:59 -04:00
Tomas Babej
b77bbaa988
Changelog: Document TW #1788 2021-06-12 17:00:11 -04:00
Tomas Babej
2d5c506d5e
README: Link more badges to sources of information 2021-06-12 15:49:53 -04:00
Tomas Babej
f4a31620f1 Changelog: Document TW #2502 2021-06-12 15:49:06 -04:00