Tomas Babej
3ed89393ec
NewsItem: Add stub
2021-09-26 21:10:41 -04:00
Tomas Babej
36bdd81d46
CmdNews: Prompt user to determine whether to show abbreviated summary
2021-09-26 21:07:21 -04:00
Tomas Babej
d092aaa2e5
CmdNews: Set news.version configuration variable upon success
2021-09-25 23:24:26 -04:00
Tomas Babej
63c176ea0e
CmdNews: Add plumbing to register the command
2021-09-25 22:05:46 -04:00
Tomas Babej
38fe7b6044
CmdNews: Add stub
2021-09-25 22:05:27 -04:00
Tomas Babej
cd2abc7132
Replace references to monthsperline with calendar.monthsperline
2021-09-25 13:34:58 -04:00
Tomas Babej
c22b233300
CmdCalendar: Respect calendar.monthsperline alongside monthsperline
2021-09-25 13:34:58 -04:00
Tomas Babej
03edf2e01c
CmdContext: Analyze the context filter for validity as modification
2021-09-18 14:15:47 -04:00
Tomas Babej
96fe962604
CmdCompletionContext: Fix typo
2021-09-18 14:15:47 -04:00
Jasha
5ad8f47000
fix a typo in the help commnad
2021-09-14 20:36:11 -04:00
DanielMowitz
c1e811a4fe
Fixed error with tasks that were completed instantly not rendering.
2021-09-11 13:56:03 -04:00
DanielMowitz
cb07e93ddd
Changed configuration option name and added documentation.
2021-09-11 13:56:03 -04:00
DanielMowitz
1d804ae7c8
Implemented non-cumulative burndown reports and added a test for them.
2021-09-11 13:56:03 -04:00
Tomas Babej
0bc92d6115
meta: Adjust copyright headers
2021-09-05 12:02:07 -04:00
Dustin J. Mitchell
309e99d49e
Refactor task diffs to handle new attributes
...
This refactors task(Info)Differences to be methods of Task and to
correctly handle the `annotation_`, `tags_`, and `dep_` attributes.
2021-09-04 10:49:45 -04:00
Tomas Babej
99f4929dc5
CmdExport: Throw an exception when the report is not found
...
The Context::getContext ().error only issues a log message, but allows
the execution of the program. In order to interrupt the execution, an
exception must be raised.
2021-08-31 18:27:45 -04:00
Dheepak Krishnamurthy
9ce366ddab
task <filter> export [<report>]
2021-08-29 12:48:18 -04:00
Tomas Babej
5309132add
CmdTimesheet: Add ability to specify if context should be used
...
This makes timesheet consistent with other report commands.
2021-08-21 08:25:06 -04:00
Tomas Babej
ab29ef8326
CmdCustom: Respect report.<name>.context configuration variable
...
This allows the user to configure if a specific report should (or should
not) adhere to the currently active context.
Closes #2560 .
2021-08-21 08:25:06 -04:00
Tomas Babej
a464324617
CmdConfig: Properly preserve comments at the end of the line
...
Trailing comments previously caused crash of the application.
Closes #2581 .
2021-08-21 01:06:55 -04:00
Tomas Babej
e2e184b8d4
CmdConfig: Be more strict when matching confiuration variables
...
Allow only leading spaces in front of configuration variables, as
opposed to arbitrary strings.
This prevents matching variables like "report.list.context=" when one is
seeking to modify "context=".
2021-08-21 01:06:55 -04:00
Dustin J. Mitchell
20af583e21
Refactor to store dependencies as individual attributes
...
This also drops support for the transitional `json.depends.array`
configuration value, which has not been necessary since ~2016.
As with tags, dependencies are stored in both a "combined",
comma-separated format (for compatibility) and in an
attribute-per-dependency format (for the future).
2021-08-17 20:36:54 -04:00
Dustin J. Mitchell
413b8d22b7
Remove references to the 'depends' property outside of Task.cpp
...
With the exception of `taskDifferences` and `taskInfoDifferences`,
deferred to #2572 .
2021-08-17 20:36:54 -04:00
Tomas Babej
861e8a6414
commands: Do not remove wait attribute upon task completion/deletion
2021-08-08 14:27:25 -04: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
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
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
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
Vladyslav Tronko
af6f2b55ec
Fix matching project name during urgency calculation
2021-07-17 16:21:59 -04:00
Tomas Babej
5e5a48606f
CmdExec: Prevent user from executing an empty command
...
Closes #2503 .
2021-06-10 21:44:07 -04:00
oxalica
3672ed0c1b
Remove build date/time from diagnostic message
...
This message does not really help, and makes the binary
non-deterministic.
2021-06-02 19:33:39 -04:00
Rosen Penev
73575f8d88
convert manual loops to std::count_if
...
Simpler and generates less assembly.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-01 21:20:52 -04:00
Rosen Penev
ab7f5b0b51
clang-tidy: loop conversion
...
Found with modernize-loop-convert
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-04-23 09:13:22 -04:00
Rosen Penev
e84930be8d
clang-tidy: use auto
...
Found with modernize-use-auto
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-04-23 01:39:23 -04:00
Rosen Penev
d0c4350c2f
clang-tidy: add missing reserve calls
...
Found with performance-inefficient-vector-operation
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-04-23 00:22:43 -04:00
Rosen Penev
3cafb5257e
clang-tidy: use = default
...
Found with modernize-use-equals-default
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-04-23 00:15:06 -04:00
Rosen Penev
8ffb85b327
clang-tidy: use '' for single character find
...
Found with performance-faster-string-find
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-04-22 23:18:16 -04:00
Tomas Babej
44220287c4
CmdCalendar: Only display relevant parts of the legend
2021-04-21 23:44:36 -04:00
Tomas Babej
282f3d344a
CmdCalendar: Adjust styling
2021-04-21 23:09:08 -04:00
DanielMowitz
a16f3addc7
Made CmdCalendar.cpp even less redundant by only calling
...
config.get ("dateformat.holiday") once for every method.
2021-04-21 22:23:00 -04:00
DanielMowitz
23244e61a5
Renamed variables to be more consistent and improved readability.
2021-04-21 22:23:00 -04:00
DanielMowitz
f703bd5a74
Made CmdCalendar.cpp less redundant by only calling
...
Context::getContext().config once per method.
2021-04-21 22:23:00 -04:00
DanielMowitz
45c67fef6e
Update CmdCalendar.cpp
...
Converted some tabs to spaces and added braces to a for loop.
2021-04-21 22:23:00 -04:00
DanielMowitz
374b97bb66
Implemented multi-day holidays.
2021-04-21 22:23:00 -04:00
DanielMowitz
dc5ebfa612
Made the code for colorizing the calendar a little more dry.
2021-04-21 22:23:00 -04:00
Max Rossmannek
6546c050c5
Un-wait a waiting task when deleted
2021-04-06 23:34:32 -04:00
Max Rossmannek
33dcea68f5
Un-wait a waiting task when done
...
Implements #2322
2021-04-06 23:34:32 -04:00