feat: hide [sub]grouped fields

This commit is contained in:
Johann Dreo 2023-08-29 17:31:30 +02:00
commit d688e0a231
5 changed files with 30 additions and 0 deletions

View file

@ -78,3 +78,7 @@
{"description":"fix escaped add: when passing add with escapable characters, bug ensues.","entry":"20230811T171437Z","modified":"20230825T091133Z","priority":"L","status":"pending","uuid":"79e1ba11-15ae-489f-9868-ab6adea40a91","tags":["bug"]}
{"description":"hide old done tasks: Hide tasks with last status that haven t been touched since a long time.","entry":"20230811T170911Z","modified":"20230825T091149Z","priority":"M","status":"pending","uuid":"e18707b4-304d-41f3-8504-89476cd796f5","tags":["feat","wontfix"]}
{"description":"hide old done tasks: Hide tasks with last status that haven t been touched since a long time.","end":"20230825T091159Z","entry":"20230811T170911Z","modified":"20230825T091159Z","priority":"M","status":"completed","uuid":"e18707b4-304d-41f3-8504-89476cd796f5","tags":["feat","wontfix"]}
{"description":"hide grouped fields: when [sub]grouping, hide the grouped field from the task display","entry":"20230829T152746Z","modified":"20230829T152746Z","status":"pending","uuid":"ec74a19f-8ab3-4911-b8d8-3b79a593a5d3","tags":["feat"]}
{"description":"hide grouped fields: when [sub]grouping, hide the grouped field from the task display","entry":"20230829T152746Z","modified":"20230829T152801Z","priority":"M","status":"pending","uuid":"ec74a19f-8ab3-4911-b8d8-3b79a593a5d3","tags":["feat"]}
{"description":"hide grouped fields: when [sub]grouping, hide the grouped field from the task display","entry":"20230829T152746Z","modified":"20230829T152806Z","priority":"M","start":"20230829T152806Z","status":"pending","uuid":"ec74a19f-8ab3-4911-b8d8-3b79a593a5d3","tags":["feat"]}
{"description":"hide grouped fields: when [sub]grouping, hide the grouped field from the task display","end":"20230829T153203Z","entry":"20230829T152746Z","modified":"20230829T153203Z","priority":"M","status":"completed","uuid":"ec74a19f-8ab3-4911-b8d8-3b79a593a5d3","tags":["feat"]}

View file

@ -1,3 +1,4 @@
[description:"hide grouped fields: when &open;sub&close;grouping, hide the grouped field from the task display" end:"1693323123" entry:"1693322866" modified:"1693323123" priority:"M" status:"completed" tags:"feat" tags_feat:"x" uuid:"ec74a19f-8ab3-4911-b8d8-3b79a593a5d3"]
[description:"hide old done tasks: Hide tasks with last status that haven t been touched since a long time." end:"1692954719" entry:"1691773751" modified:"1692954719" priority:"M" status:"completed" tags:"feat,wontfix" tags_feat:"x" tags_wontfix:"x" uuid:"e18707b4-304d-41f3-8504-89476cd796f5"]
[description:"handle prompts: for some commands like delete, taskwarrior setup an interactive prompt, which needs to be handled." end:"1692954669" entry:"1692122614" modified:"1692954669" status:"completed" tags:"bug,wontfix" tags_bug:"x" tags_wontfix:"x" uuid:"e2480c4b-4c73-4d03-8568-82f14ade7b38"]
[description:"allow filters: when invoked with filtered command, execute, then display filtered export — or point to altered tasks?" end:"1692638324" entry:"1692600138" modified:"1692638324" priority:"H" status:"completed" tags:"feat" tags_feat:"x" uuid:"b2233e70-b1fd-41db-b240-0fc265e3406e"]

View file

@ -292,3 +292,18 @@ time 1692954719
old [description:"hide old done tasks: Hide tasks with last status that haven t been touched since a long time." entry:"1691773751" modified:"1692954709" priority:"M" status:"pending" tags:"feat,wontfix" tags_feat:"x" tags_wontfix:"x" uuid:"e18707b4-304d-41f3-8504-89476cd796f5"]
new [description:"hide old done tasks: Hide tasks with last status that haven t been touched since a long time." end:"1692954719" entry:"1691773751" modified:"1692954719" priority:"M" status:"completed" tags:"feat,wontfix" tags_feat:"x" tags_wontfix:"x" uuid:"e18707b4-304d-41f3-8504-89476cd796f5"]
---
time 1693322866
new [description:"hide grouped fields: when &open;sub&close;grouping, hide the grouped field from the task display" entry:"1693322866" modified:"1693322866" status:"pending" tags:"feat" tags_feat:"x" uuid:"ec74a19f-8ab3-4911-b8d8-3b79a593a5d3"]
---
time 1693322881
old [description:"hide grouped fields: when &open;sub&close;grouping, hide the grouped field from the task display" entry:"1693322866" modified:"1693322866" status:"pending" tags:"feat" tags_feat:"x" uuid:"ec74a19f-8ab3-4911-b8d8-3b79a593a5d3"]
new [description:"hide grouped fields: when &open;sub&close;grouping, hide the grouped field from the task display" entry:"1693322866" modified:"1693322881" priority:"M" status:"pending" tags:"feat" tags_feat:"x" uuid:"ec74a19f-8ab3-4911-b8d8-3b79a593a5d3"]
---
time 1693322886
old [description:"hide grouped fields: when &open;sub&close;grouping, hide the grouped field from the task display" entry:"1693322866" modified:"1693322881" priority:"M" status:"pending" tags:"feat" tags_feat:"x" uuid:"ec74a19f-8ab3-4911-b8d8-3b79a593a5d3"]
new [description:"hide grouped fields: when &open;sub&close;grouping, hide the grouped field from the task display" entry:"1693322866" modified:"1693322886" priority:"M" start:"1693322886" status:"pending" tags:"feat" tags_feat:"x" uuid:"ec74a19f-8ab3-4911-b8d8-3b79a593a5d3"]
---
time 1693323123
old [description:"hide grouped fields: when &open;sub&close;grouping, hide the grouped field from the task display" entry:"1693322866" modified:"1693322886" priority:"M" start:"1693322886" status:"pending" tags:"feat" tags_feat:"x" uuid:"ec74a19f-8ab3-4911-b8d8-3b79a593a5d3"]
new [description:"hide grouped fields: when &open;sub&close;grouping, hide the grouped field from the task display" end:"1693323123" entry:"1693322866" modified:"1693323123" priority:"M" status:"completed" tags:"feat" tags_feat:"x" uuid:"ec74a19f-8ab3-4911-b8d8-3b79a593a5d3"]
---

View file

@ -20,3 +20,5 @@ color.row.even=on rgb2d2929
color.priority=color105
color.priority.H=rgbff0000
color.priority.M=rgbaa00ff
color.priority.L=color105
color.priority.=color105

View file

@ -745,6 +745,14 @@ if __name__ == "__main__":
show_only = None
else:
show_only = showed
field = config["layout.sections.group"]
if field and field in show_only:
# Remove the grouped field from the showed ones,
# as it will be displayed by panels anyway.
show_only.pop(show_only.index(field))
field = config["layout.subsections.group"]
if field and field in show_only:
show_only.pop(show_only.index(field))
swatch = rich.theme.Theme(get_swatch(config))
layouts = get_layouts()