aboutsummaryrefslogtreecommitdiffstats
path: root/todolist/app.go
diff options
context:
space:
mode:
Diffstat (limited to 'todolist/app.go')
-rw-r--r--todolist/app.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/todolist/app.go b/todolist/app.go
index 42b1361..c2bd66a 100644
--- a/todolist/app.go
+++ b/todolist/app.go
@@ -132,6 +132,21 @@ func (a *App) ExpandTodo(input string) {
fmt.Println("Todo expanded.")
}
+func (a *App) ManipulateNotes(input string) {
+ a.Load()
+ id, todo := a.getId(input)
+ parser := &Parser{}
+ if id == -1 {
+ return
+ }
+
+ retStr := parser.ParseNotes(todo, input)
+ if retStr != "" {
+ a.Save()
+ fmt.Println("Notes " + retStr + "ed.")
+ }
+}
+
func (a *App) ArchiveCompleted() {
a.Load()
for _, todo := range a.TodoList.Todos() {