nice QoL improvements, let's call it v0.3
This commit is contained in:
parent
be682f4754
commit
fea33eb62e
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,2 @@
|
||||
*.pyc
|
||||
*.db
|
||||
*.db*
|
||||
|
@ -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()
|
||||
|
6
tt.toml
6
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"
|
||||
|
Loading…
Reference in New Issue
Block a user