From c2114f083afeb1ac2cc28e9a83f3a9c591b59a1f Mon Sep 17 00:00:00 2001 From: Grant Ammons Date: Fri, 3 Mar 2017 18:30:06 -0500 Subject: Add priority feature Now, todos have a priority flag. When listed, these todos will be bolded and italic. You can list todos by priority by running `todolist l p`. --- todo.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'todo.go') diff --git a/todo.go b/todo.go index 2a45f28..f8a2d70 100644 --- a/todo.go +++ b/todo.go @@ -81,6 +81,15 @@ func usage() { yellow.Println("\ttodo uc 33") fmt.Println("\tUncompletes a todo with id 33\n") + blueBold.Println("\nPrioritizing") + fmt.Println("Todos have a priority flag, which will make them bold when listed.\n") + yellow.Println("\ttodo p 33") + fmt.Println("\tPrioritizes a todo with id 33\n") + yellow.Println("\ttodo up 33") + fmt.Println("\tUn-prioritizes a todo with id 33\n") + yellow.Println("\ttodo l p") + fmt.Println("\tlist all priority todos\n") + blueBold.Println("\nArchiving") fmt.Println("You can archive todos once they are done, or if you might come back to them.") fmt.Println("By default, todo will only show unarchived todos.\n") @@ -131,6 +140,10 @@ func routeInput(command string, input string) { app.EditTodoDue(input) case "ex", "expand": app.ExpandTodo(input) + case "p", "prioritize": + app.PrioritizeTodo(input) + case "up", "unprioritize": + app.UnprioritizeTodo(input) case "init": app.InitializeRepo() case "web": -- cgit v1.3