mirror of
https://github.com/GothenburgBitFactory/taskshell.git
synced 2025-08-18 15:33:12 +02:00
Review: Input reassigned
- 's' to skip - 'r' to review - <enter> to review
This commit is contained in:
parent
496842335f
commit
50c23bce15
2 changed files with 6 additions and 4 deletions
|
@ -121,9 +121,9 @@
|
|||
#define STRING_REVIEW_END "End of review. {1} out of {2} tasks reviewed."
|
||||
|
||||
#define STRING_REVIEW_INTRO_1 "The review process is important for keeping your list accurate, so you are working on the right thing."
|
||||
#define STRING_REVIEW_INTRO_2 "For each task you are shown, look at the metadata. Determine whether the task needs to be changed (enter 'e' to edit), or whether it is accurate (enter 'r' to mark as reviewed). You may skip a task ('enter') but a skipped task is not considered reviewed."
|
||||
#define STRING_REVIEW_INTRO_2 "For each task you are shown, look at the metadata. Determine whether the task needs to be changed (enter 'e' to edit), or whether it is accurate ('enter' or 'r' to mark as reviewed). You may skip a task ('s') but a skipped task is not considered reviewed."
|
||||
#define STRING_REVIEW_INTRO_3 "You may stop at any time, and resume later, right where you left off. See 'man tasksh' for more details."
|
||||
#define STRING_REVIEW_PROMPT "(Enter) Skip, (e)dit, (c)ompleted, (d)eleted, Mark as (r)eviewed, (q)uit"
|
||||
#define STRING_REVIEW_PROMPT "(Enter) Mark as reviewed, (s)kip, (e)dit, (c)ompleted, (d)eleted, (q)uit"
|
||||
|
||||
// Initial prompt
|
||||
#define STRING_COMMAND_USAGE " Commands:\n\
|
||||
|
|
|
@ -205,11 +205,13 @@ static void reviewLoop (const std::vector <std::string>& uuids, int limit)
|
|||
auto response = getResponse (menu ());
|
||||
|
||||
if (response == "e") { editTask (uuid); ++current; ++reviewed; }
|
||||
else if (response == "r") { reviewTask (uuid); ++current; ++reviewed; }
|
||||
else if (response == "s") { std::cout << "Skipped\n\n"; ++current; }
|
||||
else if (response == "c") { completeTask (uuid); ++current; ++reviewed; }
|
||||
else if (response == "d") { deleteTask (uuid); ++current; ++reviewed; }
|
||||
else if (response == "") { reviewTask (uuid); ++current; ++reviewed; }
|
||||
else if (response == "r") { reviewTask (uuid); ++current; ++reviewed; }
|
||||
else if (response == "q") { break; }
|
||||
else if (response == "") { std::cout << "Skipped\n\n"; ++current; }
|
||||
|
||||
else
|
||||
{
|
||||
std::cout << format (STRING_REVIEW_UNRECOGNIZED, response) << "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue