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
|
*.pyc
|
||||||
*.db
|
*.db*
|
||||||
|
@ -144,7 +144,7 @@ class DateModal(ModalScreen):
|
|||||||
def __init__(self, date):
|
def __init__(self, date):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
if date in SPECIAL_DATES_PIECES:
|
if date in SPECIAL_DATES_PIECES:
|
||||||
self.pieces = SPECIAL_DATES_PIECES[date]
|
self.pieces = list(SPECIAL_DATES_PIECES[date])
|
||||||
elif date:
|
elif date:
|
||||||
self.pieces = [int(p) for p in date.split("-")]
|
self.pieces = [int(p) for p in date.split("-")]
|
||||||
else:
|
else:
|
||||||
@ -161,10 +161,10 @@ class DateModal(ModalScreen):
|
|||||||
(p)ast (t)oday (f)uture""", classes="hints")
|
(p)ast (t)oday (f)uture""", classes="hints")
|
||||||
|
|
||||||
def action_future(self):
|
def action_future(self):
|
||||||
self.pieces = SPECIAL_DATES_PIECES["future"]
|
self.pieces = list(SPECIAL_DATES_PIECES["future"])
|
||||||
|
|
||||||
def action_unclassified(self):
|
def action_unclassified(self):
|
||||||
self.pieces = SPECIAL_DATES_PIECES["unclassified"]
|
self.pieces = list(SPECIAL_DATES_PIECES["unclassified"])
|
||||||
|
|
||||||
def action_today(self):
|
def action_today(self):
|
||||||
today = datetime.date.today()
|
today = datetime.date.today()
|
||||||
|
6
tt.toml
6
tt.toml
@ -28,7 +28,7 @@ values = [
|
|||||||
|
|
||||||
[[views]]
|
[[views]]
|
||||||
name = "tasks"
|
name = "tasks"
|
||||||
sort = "due"
|
sort = "due,status"
|
||||||
|
|
||||||
[views.filters]
|
[views.filters]
|
||||||
status = "wip,blocked,zero"
|
status = "wip,blocked,zero"
|
||||||
@ -40,7 +40,7 @@ read_only = true
|
|||||||
[[views.columns]]
|
[[views.columns]]
|
||||||
field_name = "text"
|
field_name = "text"
|
||||||
display_name = "Task"
|
display_name = "Task"
|
||||||
default = "new taskz"
|
default = "new task"
|
||||||
editor = true
|
editor = true
|
||||||
|
|
||||||
[[views.columns]]
|
[[views.columns]]
|
||||||
@ -56,7 +56,7 @@ default = ""
|
|||||||
[[views.columns]]
|
[[views.columns]]
|
||||||
field_name = "due"
|
field_name = "due"
|
||||||
field_type = "date"
|
field_type = "date"
|
||||||
default = ""
|
default = "1999-01-01"
|
||||||
|
|
||||||
[[views.columns]]
|
[[views.columns]]
|
||||||
field_name = "project"
|
field_name = "project"
|
||||||
|
Loading…
Reference in New Issue
Block a user