aboutsummaryrefslogtreecommitdiffstats
path: root/todo.go
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2017-05-05 16:51:03 -0400
committerGrant Ammons <gammons@gmail.com>2017-05-09 20:20:24 -0400
commit1056fecdccbb734dc732a2f795f2591d3c63f951 (patch)
treeb2ee655bd093e27377dbbbee6005f46d429abd6c /todo.go
parent54aaabdbe16986e6e6071dda1eeee6f73ae39400 (diff)
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
Diffstat (limited to 'todo.go')
-rw-r--r--todo.go6
1 files changed, 2 insertions, 4 deletions
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":