Skip to content

Commit

Permalink
Hide information by default in review
Browse files Browse the repository at this point in the history
  • Loading branch information
kmarekspartz authored and pbeckingham committed Jun 2, 2018
1 parent a7d459b commit 908d2cc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/review.cpp
Expand Up @@ -181,7 +181,7 @@ static const std::string banner (
////////////////////////////////////////////////////////////////////////////////
static const std::string menu ()
{
return Color ("color15 on gray6").colorize (" (Enter) Mark as reviewed, (s)kip, (e)dit, (m)odify, (c)omplete, (d)elete, (q)uit ") + " ";
return Color ("color15 on gray6").colorize (" (Enter) Mark as reviewed, (s)kip, (e)dit, (i)nformation, (m)odify, (c)omplete, (d)elete, (q)uit ") + " ";
}

////////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -226,10 +226,6 @@ static void reviewLoop (const std::vector <std::string>& uuids, unsigned int lim
repeat = false;
std::cout << banner (current + 1, total, width, Lexer::trimRight (description, "\n"));

// Use 'system' to run the command and show the output.
std::string command = "task " + uuid + " information";
system (command.c_str ());

// Display prompt, get input.
response = getResponse (menu ());

Expand All @@ -241,6 +237,11 @@ static void reviewLoop (const std::vector <std::string>& uuids, unsigned int lim
else if (response == "") { reviewTask (uuid); ++current; ++reviewed; }
else if (response == "r") { reviewTask (uuid); ++current; ++reviewed; }
else if (response == "q") { break; }
else if (response == "i") {
// Use 'system' to run the command and show the output.
std::string command = "task " + uuid + " information";
system (command.c_str ());
}

else
{
Expand Down

0 comments on commit 908d2cc

Please sign in to comment.