Verbosity
- Deprecated 'rc.edit.verbose'. - Added support for verbosity token 'edit'. - Updated documentation.
This commit is contained in:
@@ -75,13 +75,13 @@ std::string Config::_defaults =
|
||||
"avoidlastcolumn=no # Fixes Cygwin width problem\n"
|
||||
"hyphenate=on # Hyphenates lines wrapped on non-word-breaks\n"
|
||||
"#editor=vi # Preferred text editor\n"
|
||||
"edit.verbose=yes # Include comments in files created during task edit\n"
|
||||
"edit.verbose=yes # Include comments in files created during task edit. Deprecated\n"
|
||||
"\n"
|
||||
"# Miscellaneous\n"
|
||||
"verbose=yes # Provide maximal feedback\n"
|
||||
"#verbose=no # Provide minimal feedback\n"
|
||||
"#verbose=list # Comma-separated list. May contain any subset of:\n"
|
||||
"#verbose=blank,header,footnote,label,new-id,affected\n"
|
||||
"#verbose=blank,header,footnote,label,new-id,affected,edit\n"
|
||||
"confirmation=yes # Confirmation on delete, big changes\n"
|
||||
"echo.command=yes # Details on command just run. Deprecated\n"
|
||||
"annotations=full # Level of verbosity for annotations: full, sparse or none\n"
|
||||
|
||||
@@ -138,7 +138,8 @@ std::string CmdEdit::formatDate (
|
||||
std::string CmdEdit::formatTask (Task task)
|
||||
{
|
||||
std::stringstream before;
|
||||
bool verbose = context.config.getBoolean ("edit.verbose");
|
||||
bool verbose = context.verbose ("edit") ||
|
||||
context.config.getBoolean ("edit.verbose"); // Deprecated 2.0
|
||||
|
||||
if (verbose)
|
||||
before << "# The 'task edit <id>' command allows you to modify all aspects of a task\n"
|
||||
|
||||
@@ -144,7 +144,7 @@ int CmdShow::execute (std::string& output)
|
||||
" dom"
|
||||
" due"
|
||||
" echo.command" // Deprecated 2.0
|
||||
" edit.verbose"
|
||||
" edit.verbose" // Deprecated 2.0
|
||||
" editor"
|
||||
" exit.on.missing.db"
|
||||
" export.ical.class"
|
||||
|
||||
Reference in New Issue
Block a user