Verbosity

- Deprecated 'rc.edit.verbose'.
- Added support for verbosity token 'edit'.
- Updated documentation.
This commit is contained in:
Paul Beckingham
2011-10-01 11:34:05 -04:00
parent 8ccce069d9
commit 160c9708a5
6 changed files with 12 additions and 6 deletions

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"