From 79207a8e428a2b2539bc2571c0ac80dca10239b5 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 5 Apr 2015 10:22:56 -0400 Subject: [PATCH] Info: A '+' symbol was shown instead of a '*', for urgency details --- src/commands/CmdInfo.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/commands/CmdInfo.cpp b/src/commands/CmdInfo.cpp index da2b0e0a0..47535b349 100644 --- a/src/commands/CmdInfo.cpp +++ b/src/commands/CmdInfo.cpp @@ -447,6 +447,15 @@ int CmdInfo::execute (std::string& output) if (task->hasTag (name)) urgencyTerm (urgencyDetails, "TAG " + name, 1.0, var->second); } + + // urgency.user.keyword..coefficient + if (var->first.substr (13, 8) == "keyword." && + (end = var->first.find (".coefficient")) != std::string::npos) + { + std::string keyword = var->first.substr (21, end - 21); + if (task->get ("description").find (keyword) != std::string::npos) + urgencyTerm (urgencyDetails, "KEYWORD " + keyword, 1.0, var->second); + } } // urgency.uda..coefficient @@ -551,7 +560,7 @@ void CmdInfo::urgencyTerm ( int row = view.addRow (); view.set (row, 0, " " + label); view.set (row, 1, rightJustify (format (measure, 5, 3), 6)); - view.set (row, 2, "+"); + view.set (row, 2, "*"); view.set (row, 3, rightJustify (format (coefficient, 4, 2), 4)); view.set (row, 4, "="); view.set (row, 5, rightJustify (format (value, 5, 3), 6));