mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
TW-294
- TW-294 Display UUID of task created by add (thanks to John West).
This commit is contained in:
parent
949c7bba06
commit
b60a4aff22
6 changed files with 11 additions and 2 deletions
|
@ -58,6 +58,7 @@
|
||||||
- TW-279 ".monthly" unexpectedly appended to task annotation (thanks to Florian
|
- TW-279 ".monthly" unexpectedly appended to task annotation (thanks to Florian
|
||||||
Hollerweger).
|
Hollerweger).
|
||||||
- TW-285 DUETODAY doesn't give any output (thanks to Jostein Berntsen).
|
- TW-285 DUETODAY doesn't give any output (thanks to Jostein Berntsen).
|
||||||
|
- TW-294 Display UUID of task created by add (thanks to John West).
|
||||||
- TW-306 Wrong date format in burndown view (thanks to Michele Santullo).
|
- TW-306 Wrong date format in burndown view (thanks to Michele Santullo).
|
||||||
- TW-752 task ID no longer defaults to info (thanks to Christopher Roberts).
|
- TW-752 task ID no longer defaults to info (thanks to Christopher Roberts).
|
||||||
- TW-1243 Automatically insert ( ) around user-supplied filter, if any.
|
- TW-1243 Automatically insert ( ) around user-supplied filter, if any.
|
||||||
|
|
1
NEWS
1
NEWS
|
@ -12,6 +12,7 @@ New Features in taskwarrior 2.4.0
|
||||||
- Regular expressions are now enabled by default.
|
- Regular expressions are now enabled by default.
|
||||||
- The 'filter' verbosity token shows the complete filter used for the last
|
- The 'filter' verbosity token shows the complete filter used for the last
|
||||||
command.
|
command.
|
||||||
|
- The 'new-uuid' verbosity token shows the UUID of newly created tasks.
|
||||||
- The 'info' report now breaks down urgency values.
|
- The 'info' report now breaks down urgency values.
|
||||||
|
|
||||||
New commands in taskwarrior 2.4.0
|
New commands in taskwarrior 2.4.0
|
||||||
|
|
|
@ -79,7 +79,7 @@ std::string Config::_defaults =
|
||||||
"#verbose=no # Provide regular feedback\n"
|
"#verbose=no # Provide regular feedback\n"
|
||||||
"#verbose=nothing # Provide no feedback\n"
|
"#verbose=nothing # Provide no feedback\n"
|
||||||
"# # Comma-separated list. May contain any subset of:\n"
|
"# # Comma-separated list. May contain any subset of:\n"
|
||||||
"#verbose=blank,header,footnote,label,new-id,affected,edit,special,project,sync,filter\n"
|
"#verbose=blank,header,footnote,label,new-id,new-uuid,affected,edit,special,project,sync,filter\n"
|
||||||
"confirmation=yes # Confirmation on delete, big changes\n"
|
"confirmation=yes # Confirmation on delete, big changes\n"
|
||||||
"indent.annotation=2 # Indent spaces for annotations\n"
|
"indent.annotation=2 # Indent spaces for annotations\n"
|
||||||
"indent.report=0 # Indent spaces for whole report\n"
|
"indent.report=0 # Indent spaces for whole report\n"
|
||||||
|
|
|
@ -484,6 +484,7 @@ bool Context::verbose (const std::string& token)
|
||||||
verbosity[0] != "footnote" && //
|
verbosity[0] != "footnote" && //
|
||||||
verbosity[0] != "label" && //
|
verbosity[0] != "label" && //
|
||||||
verbosity[0] != "new-id" && //
|
verbosity[0] != "new-id" && //
|
||||||
|
verbosity[0] != "new-uuid" && //
|
||||||
verbosity[0] != "affected" && //
|
verbosity[0] != "affected" && //
|
||||||
verbosity[0] != "edit" && //
|
verbosity[0] != "edit" && //
|
||||||
verbosity[0] != "special" && //
|
verbosity[0] != "special" && //
|
||||||
|
|
|
@ -55,7 +55,10 @@ int CmdAdd::execute (std::string& output)
|
||||||
context.tdb2.add (task);
|
context.tdb2.add (task);
|
||||||
|
|
||||||
if (context.verbose ("new-id"))
|
if (context.verbose ("new-id"))
|
||||||
output = format (STRING_CMD_ADD_FEEDBACK, context.tdb2.next_id ()) + "\n";
|
output += format (STRING_CMD_ADD_FEEDBACK, context.tdb2.next_id ()) + "\n";
|
||||||
|
|
||||||
|
if (context.verbose ("new-uuid"))
|
||||||
|
output += format (STRING_CMD_ADD_FEEDBACK, task.get ("uuid")) + "\n";
|
||||||
|
|
||||||
if (context.verbose ("project"))
|
if (context.verbose ("project"))
|
||||||
context.footnote (onProjectChange (task));
|
context.footnote (onProjectChange (task));
|
||||||
|
|
|
@ -114,6 +114,9 @@ int CmdDuplicate::execute (std::string& output)
|
||||||
if (context.verbose ("new-id"))
|
if (context.verbose ("new-id"))
|
||||||
std::cout << format (STRING_CMD_ADD_FEEDBACK, context.tdb2.next_id ()) + "\n";
|
std::cout << format (STRING_CMD_ADD_FEEDBACK, context.tdb2.next_id ()) + "\n";
|
||||||
|
|
||||||
|
if (context.verbose ("new-uuid"))
|
||||||
|
std::cout << format (STRING_CMD_ADD_FEEDBACK, dup.get ("uuid")) + "\n";
|
||||||
|
|
||||||
if (context.verbose ("project"))
|
if (context.verbose ("project"))
|
||||||
projectChanges[task->get ("project")] = onProjectChange (*task);
|
projectChanges[task->get ("project")] = onProjectChange (*task);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue