From 1056fecdccbb734dc732a2f795f2591d3c63f951 Mon Sep 17 00:00:00 2001 From: Grant Ammons Date: Fri, 5 May 2017 16:51:03 -0400 Subject: WIP on a unified edit This allows a unified edit functionality that supports the following: **`t e 25 due tom`** * Edits the due date * Leaves subject, projects and contexts unchanged **`t e 25 take out the trash with @bob` * Updates the subject, projects and contexts * Leaves the due date unchanged **`t e 25 take out the trash with @bob due tom` * Updates the subject, projects and contexts * Updates the due date **What's missing** * Tests that exercise this functionality --- todo.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'todo.go') diff --git a/todo.go b/todo.go index d091cd3..130fd55 100644 --- a/todo.go +++ b/todo.go @@ -140,10 +140,8 @@ func routeInput(command string, input string) { app.UnarchiveTodo(input) case "ac": app.ArchiveCompleted() - case "e", "edit", "ed", "edit-date": - app.EditTodoDue(input) - case "es", "edit-subject": - app.EditTodoSubject(input) + case "e", "edit": + app.EditTodo(input) case "ex", "expand": app.ExpandTodo(input) case "gc": -- cgit v1.3