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
DanielMowitz
fb6c42f375
Change nagging behavior
...
Don't nag if the specified set of tasks consists only of highest urgency tasks.
2021-04-04 22:06:07 -04:00
Tomas Babej
693f2f74cd
CmdEdit: Respect bulk option
...
Since 'task edit' is a data-modification operation (that is particularly
hard to cancel mid-way), it should also respect the 'bulk' option like
all the other modification operations (mod, start...).
Closes #2428 .
2021-04-03 17:57:08 -04:00
Tomas Babej
fe6a6ca93b
compatibility: Explicitly specify template type to support older compilers
...
This makes curret development branch buildable on Ubuntu 18 / Centos 7 /
SUSE 15.
2021-04-03 15:01:39 -04:00
Tomas Babej
c701137313
CmdContext: Report context as not found if nothing was deleted
2021-04-03 15:01:39 -04:00
Tomas Babej
201b1c37b4
CmdContext: Allow user to define read-only / write-only contexts
2021-04-03 15:01:39 -04:00
Tomas Babej
4de23a3e20
CmdContext: Remove all types of context when deleting
2021-04-03 15:01:39 -04:00
Tomas Babej
062878022b
CmdContext: Expand information provided in 'context show'
2021-04-03 15:01:39 -04:00
Tomas Babej
a558ffcd42
CmdContext: List info about both read and write context
2021-04-03 15:01:39 -04:00
Tomas Babej
c0ded37f91
CmdContext: Discard .read/.write suffix when discovering contexts
2021-04-03 15:01:39 -04:00
Tomas Babej
41823c7939
CmdContext: Expand description
2021-04-03 15:01:39 -04:00
Tomas Babej
985aab0541
CmdContext: Define both read and write context
2021-04-03 15:01:39 -04:00
Tomas Babej
9bc726ba61
commands: Modify CmdAdd and CmdLog to use context
...
This only sets the command properties.
2021-04-03 15:01:39 -04:00
Tomas Babej
0d1542ccd7
meta: Update various links to https
2021-03-12 07:58:04 -05:00
Tomas Babej
2df80aac01
CmdCalendar: Default to current month if no due date is present
...
Previously, if no due date was set on any pending/waiting task, the
calendar output would start at the end of the currently supported date
period.
Default to current month instead.
2021-01-24 10:51:14 -05:00
Tomas Babej
0234cd8122
CmdCalendar: Support due dates up to year 9999
2021-01-24 10:51:14 -05:00
Tomas Babej
22228547ca
CmdCalendar: Consider waiting status equivalent to pending for purposes of display
...
The purpose of displaying due dates on the calendar is to convey the
relative business of any given day. Waiting status signifies a task
should not be displayed in reports yet, but for the purposes of
planning, it should be displayed in the calendar overview.
Closes #2393 .
2021-01-24 10:51:14 -05:00
indev
098be0747d
fix: remove lock file on interruption of 'task edit' ( #2292 )
2021-01-14 18:16:34 -05:00
Jochen Sprickerhof
663c6575ce
Use str_replace from libshared
2021-01-07 22:37:04 -05:00
Jochen Sprickerhof
a95205357c
Support editing multi-line annotations ( Closes : #2283 )
...
Since e4b9c1f annotations where JSON encoded in task edit to escape
new lines (\n). But other strings where mangled as well, like https://
becoming https:\/\/, making it hard to edit.
This patch removes the JSON encoding and indents new lines instead.
2021-01-07 22:37:04 -05:00
Tomas Babej
9017cd6e53
doc: Update copyright to 2021
2021-01-02 02:48:22 -05:00
Tomas Babej
6ff63286b5
CmdInfo: Properly format date and duration UDAs
...
The 'type' variable was never assigned value, hence the checking for
'date' and/or 'duration' always failed. Use col->type() instead.
Closes #2060 .
2020-12-28 20:36:32 -05:00
Tomas Babej
fbf8fe688e
CmdCalendar: Properly colorize overdue task from today
...
Even if task is due today, but the due time is in the past, it is
considered overdue according to the implementation of Task::is_overdue
method.
Make coloring in the calendar output consistent.
2020-12-14 22:35:36 -05:00
Tomas Babej
bfae79eac7
CmdCalendar: Remove accidental repeated blending
2020-12-14 22:35:35 -05:00
Tomas Babej
d43fa66489
CmdPurge: Detect the failure mode of trying to purge non-deleted tasks
...
Prompted by the failure mode described by Glen Solsberry in #2254 .
2020-12-05 14:31:27 -05:00
Max Rossmannek
3d850715f4
Make virtual tags consistent across commands.
...
- the DUETODAY tag was deprecated in b2d49f397
- the QUARTER tag was added in 630a1530e and 4711dd9e1
- the PROJECT, PRIORITY and LATEST tags were added in 4008a64
Note: the documentation in the man page is already up-to-date.
Fixes #2359
2020-12-03 01:45:07 -05:00
Tomas Babej
a09f9d48ab
Update copyright to 2020
2020-11-21 12:27:05 -05:00
HTunne
75c0e41fcc
Make modify and delete commands respect rc.recurrence.confirmation config option.
2020-11-21 12:26:41 -05:00
Martin Michlmayr
174507e7ad
Fix typos
2020-11-17 10:41:13 -05:00
Tomas Babej
6bfb275dcc
CmdAdd: Make sure a UUID is printed if ID does not exist
...
This fixes a regression was introduced in
4e80d5d5fd .
Currently, if a user (with default configuration) adds a completed or
deleted task, they do not get a confirmation message ("Created task
..."). This is due to the fact that:
a) new-uuid is not set by default
b) new-id is set by default, but only prints message if the added task
is in pending or waiting state
Make sure to print a message containing UUID reference if the newly
added task is in completed or deleted state.
2020-09-18 21:10:59 -04:00
timbuntu
938e9130d6
Fixed report colors in calendar
2020-03-12 10:38:03 -04:00
Chad Phillips
cd62e65a13
JSON encode/decode string UDAs
...
Previously, multiline string UDAs were not preserved when editing
a task via 'task X edit'. String UDAs are now JSON encoded/decoded
during the edit cycle to allow preservation of multiline
2019-04-14 19:34:57 -04:00
mrossinek
6fbd400e77
Fix #1999
2019-03-02 19:44:18 -05:00