diff --git a/pyproject.toml b/pyproject.toml index 1da436d..5e1b9f5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "zrb-noto" -version = "0.0.5" +version = "0.0.6" description = "Personal todo and logging management" authors = ["Go Frendi Gunawan "] license = "AGPL-3.0-or-later" diff --git a/src/zrb_noto/_config.py b/src/zrb_noto/_config.py index 87e7619..6776c51 100644 --- a/src/zrb_noto/_config.py +++ b/src/zrb_noto/_config.py @@ -1,5 +1,6 @@ import os from datetime import datetime + from zrb.helper.string.conversion import to_boolean _HOME_DIR = os.path.expanduser("~") diff --git a/src/zrb_noto/todo/archive.py b/src/zrb_noto/todo/archive.py index e1bf9df..0d0459b 100644 --- a/src/zrb_noto/todo/archive.py +++ b/src/zrb_noto/todo/archive.py @@ -1,15 +1,11 @@ from zrb import StrInput, Task, python_task, runner from zrb.helper.task import show_lines -from .._config import IS_AUTO_SYNC, TODO_ABS_FILE_PATH, DONE_ABS_FILE_PATH +from .._config import DONE_ABS_FILE_PATH, IS_AUTO_SYNC, TODO_ABS_FILE_PATH from ..log._helper import get_pretty_log_lines from ..sync import create_sync_noto_task from ._group import noto_todo_group -from ._helper import ( - get_pretty_todo_item_lines, - get_todo_items, - save_items, -) +from ._helper import get_pretty_todo_item_lines, get_todo_items, save_items new_description_input = StrInput( name="description", diff --git a/src/zrb_noto/todo/edit.py b/src/zrb_noto/todo/edit.py index dfc87f8..c70938a 100644 --- a/src/zrb_noto/todo/edit.py +++ b/src/zrb_noto/todo/edit.py @@ -1,10 +1,9 @@ -from zrb import Task, python_task, runner +from zrb import StrInput, Task, python_task, runner from zrb.helper.accessories.color import colored from zrb.helper.task import show_lines from .._config import IS_AUTO_SYNC from ..log._helper import append_log_item, get_pretty_log_lines -from ..log._helper import get_pretty_log_lines from ..sync import create_sync_noto_task from ._group import noto_todo_group from ._helper import ( @@ -18,11 +17,16 @@ date_input, description_input, keyval_input, - priority_input, project_input, task_input, ) +priority_input = StrInput( + name="priority", + prompt="Priority", + default="", +) + @python_task( name="edit_item", diff --git a/src/zrb_noto/todo/kanban/kanban.py b/src/zrb_noto/todo/kanban/kanban.py index 3d55380..187573a 100644 --- a/src/zrb_noto/todo/kanban/kanban.py +++ b/src/zrb_noto/todo/kanban/kanban.py @@ -3,7 +3,7 @@ from ..._config import IS_AUTO_SYNC from ..._helper import get_screen_width -from ...sync import sync_noto, create_sync_noto_task +from ...sync import create_sync_noto_task, sync_noto from .._group import noto_todo_group from .._helper import get_todo_items from ._helper import get_kanban_lines