diff --git a/.gitignore b/.gitignore index 085c4fe..f3280b3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ *.pyc -*.db +*.db* diff --git a/src/tt/tui/modals.py b/src/tt/tui/modals.py index 2bf272f..39d183d 100644 --- a/src/tt/tui/modals.py +++ b/src/tt/tui/modals.py @@ -144,7 +144,7 @@ class DateModal(ModalScreen): def __init__(self, date): super().__init__() if date in SPECIAL_DATES_PIECES: - self.pieces = SPECIAL_DATES_PIECES[date] + self.pieces = list(SPECIAL_DATES_PIECES[date]) elif date: self.pieces = [int(p) for p in date.split("-")] else: @@ -161,10 +161,10 @@ class DateModal(ModalScreen): (p)ast (t)oday (f)uture""", classes="hints") def action_future(self): - self.pieces = SPECIAL_DATES_PIECES["future"] + self.pieces = list(SPECIAL_DATES_PIECES["future"]) def action_unclassified(self): - self.pieces = SPECIAL_DATES_PIECES["unclassified"] + self.pieces = list(SPECIAL_DATES_PIECES["unclassified"]) def action_today(self): today = datetime.date.today() diff --git a/tt.toml b/tt.toml index 7ffac1b..e4b3a0c 100644 --- a/tt.toml +++ b/tt.toml @@ -28,7 +28,7 @@ values = [ [[views]] name = "tasks" -sort = "due" +sort = "due,status" [views.filters] status = "wip,blocked,zero" @@ -40,7 +40,7 @@ read_only = true [[views.columns]] field_name = "text" display_name = "Task" -default = "new taskz" +default = "new task" editor = true [[views.columns]] @@ -56,7 +56,7 @@ default = "" [[views.columns]] field_name = "due" field_type = "date" -default = "" +default = "1999-01-01" [[views.columns]] field_name = "project"