mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-01 11:20:19 +02:00
Enhancement
- Separate date format when editing from the default one.
This commit is contained in:
parent
ba992a631e
commit
82a4607ec6
4 changed files with 10 additions and 2 deletions
|
@ -631,8 +631,12 @@ bool CmdEdit::editFile (Task& task)
|
|||
file << "task." << getpid () << "." << task.id << ".task";
|
||||
std::string path = location._data + "/" + file.str ();
|
||||
|
||||
// Determine the output date format
|
||||
std::string dateformat = context.config.get ("dateformat");
|
||||
// Determine the output date format, which uses a hierarchy of definitions.
|
||||
// rc.dateformat.edit
|
||||
// rc.dateformat
|
||||
std::string dateformat = context.config.get ("dateformat.edit");
|
||||
if (dateformat == "")
|
||||
dateformat = context.config.get ("dateformat");
|
||||
|
||||
// Format the contents, T -> text, write to a file.
|
||||
std::string before = formatTask (task, dateformat);
|
||||
|
|
|
@ -128,6 +128,7 @@ int CmdShow::execute (std::string& output)
|
|||
" data.location"
|
||||
" dateformat"
|
||||
" dateformat.annotation"
|
||||
" dateformat.edit"
|
||||
" dateformat.holiday"
|
||||
" dateformat.info"
|
||||
" dateformat.report"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue