diff options
| author | Grant Ammons <gammons@gmail.com> | 2017-05-05 16:51:03 -0400 |
|---|---|---|
| committer | Grant Ammons <gammons@gmail.com> | 2017-05-09 20:20:24 -0400 |
| commit | 1056fecdccbb734dc732a2f795f2591d3c63f951 (patch) | |
| tree | b2ee655bd093e27377dbbbee6005f46d429abd6c /todo.go | |
| parent | 54aaabdbe16986e6e6071dda1eeee6f73ae39400 (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.go | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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": |
