diff --git a/README.md b/README.md index e8ffd81..a1c3a78 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,8 @@ The default mode of the app is TUI mode. Keybinds are vim-like. Here they are: | S | set custom schedule | | D | delete todo | | > | add todo note | +| i | increase day done | +| o | decrease day done | | t | add todo dependency | | l | go in depedency/add todo dependency | | h | go back to parent | diff --git a/src/todo_app.rs b/src/todo_app.rs index 67295df..1179937 100644 --- a/src/todo_app.rs +++ b/src/todo_app.rs @@ -49,14 +49,14 @@ impl App { #[inline] pub fn increase_day_done(&mut self) { if let Some(mut todo) = self.mut_todo() { - todo.schedule.add_days_to_done_date(1) + todo.schedule.add_days_to_done_date(-1) } } #[inline] pub fn decrease_day_done(&mut self) { if let Some(mut todo) = self.mut_todo() { - todo.schedule.add_days_to_done_date(-1) + todo.schedule.add_days_to_done_date(1) } }