From b1d65f65190385d6f74cb9bbcd4d4a3de89dacae Mon Sep 17 00:00:00 2001 From: nojhan Date: Fri, 25 Aug 2023 11:13:28 +0200 Subject: [PATCH] fix: Vertical panel expansion --- .task/backlog.data | 6 ++++++ .task/completed.data | 2 ++ .task/pending.data | 6 ++---- .task/undo.data | 24 ++++++++++++++++++++++++ taskwarrior-deluxe.py | 2 +- 5 files changed, 35 insertions(+), 5 deletions(-) diff --git a/.task/backlog.data b/.task/backlog.data index f3b611a..7403d65 100644 --- a/.task/backlog.data +++ b/.task/backlog.data @@ -72,3 +72,9 @@ {"description":"allow filters: when invoked with filtered command, execute, then display filtered export — or point to altered tasks?","entry":"20230821T064218Z","modified":"20230821T171646Z","priority":"H","start":"20230821T171646Z","status":"pending","uuid":"b2233e70-b1fd-41db-b240-0fc265e3406e","tags":["feat"]} {"description":"allow filters: when invoked with filtered command, execute, then display filtered export — or point to altered tasks?","end":"20230821T171844Z","entry":"20230821T064218Z","modified":"20230821T171844Z","priority":"H","status":"completed","uuid":"b2233e70-b1fd-41db-b240-0fc265e3406e","tags":["feat"]} {"description":"semantic colors: allow coloring by values, not just fields.","entry":"20230817T065528Z","modified":"20230825T084738Z","start":"20230825T084738Z","status":"pending","uuid":"1a5aab4a-0c2b-444f-9259-6eddc29b9791","tags":["feat","themes"]} +{"description":"handle prompts: for some commands like delete, taskwarrior setup an interactive prompt, which needs to be handled.","entry":"20230815T180334Z","modified":"20230825T091104Z","status":"pending","uuid":"e2480c4b-4c73-4d03-8568-82f14ade7b38","tags":["bug","wontfix"]} +{"description":"handle prompts: for some commands like delete, taskwarrior setup an interactive prompt, which needs to be handled.","end":"20230825T091109Z","entry":"20230815T180334Z","modified":"20230825T091109Z","status":"completed","uuid":"e2480c4b-4c73-4d03-8568-82f14ade7b38","tags":["bug","wontfix"]} +{"description":"more themes","entry":"20230812T182344Z","modified":"20230825T091124Z","priority":"L","status":"pending","uuid":"9ee183d4-3413-4efa-ba68-10d709669c05","tags":["themes"]} +{"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"]} diff --git a/.task/completed.data b/.task/completed.data index 7c05252..f9d6766 100644 --- a/.task/completed.data +++ b/.task/completed.data @@ -1,3 +1,5 @@ +[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"] [description:"init command: add a command to initialize a local .task dir and\/or config file.s" end:"1692600151" entry:"1692121630" modified:"1692600151" priority:"M" status:"completed" tags:"feat" tags_feat:"x" uuid:"81fc6480-e8e7-4dd4-9f01-a00f34463135"] [description:"find data updir: try to find .task on upper directories if not in the existing one" end:"1692598477" entry:"1691773581" modified:"1692598477" priority:"H" status:"completed" tags:"data,feat" tags_data:"x" tags_feat:"x" uuid:"b4ee0b55-0bb3-4a2f-b7c5-87cd70dd0ff0"] diff --git a/.task/pending.data b/.task/pending.data index 2d533a8..256db90 100644 --- a/.task/pending.data +++ b/.task/pending.data @@ -1,8 +1,6 @@ [description:"semantic tags : allow tags starting with a hash to refer to a github issue or PR" entry:"1691773642" modified:"1692121563" priority:"L" status:"pending" tags:"feat" tags_feat:"x" uuid:"06cf70a9-4f0e-4b32-b7bb-d1799803665c"] -[description:"hide old done tasks: Hide tasks with last status that haven t been touched since a long time." entry:"1691773751" modified:"1692122496" priority:"M" status:"pending" tags:"feat" tags_feat:"x" uuid:"e18707b4-304d-41f3-8504-89476cd796f5"] -[description:"fix escaped add: when passing add with escapable characters, bug ensues." entry:"1691774077" modified:"1691774077" status:"pending" tags:"bug" tags_bug:"x" uuid:"79e1ba11-15ae-489f-9868-ab6adea40a91"] -[description:"more themes" entry:"1691864624" modified:"1692600330" status:"pending" tags:"themes" tags_themes:"x" uuid:"9ee183d4-3413-4efa-ba68-10d709669c05"] +[description:"fix escaped add: when passing add with escapable characters, bug ensues." entry:"1691774077" modified:"1692954693" priority:"L" status:"pending" tags:"bug" tags_bug:"x" uuid:"79e1ba11-15ae-489f-9868-ab6adea40a91"] +[description:"more themes" entry:"1691864624" modified:"1692954684" priority:"L" status:"pending" tags:"themes" tags_themes:"x" uuid:"9ee183d4-3413-4efa-ba68-10d709669c05"] [description:"colored panels: allow selecting a different swatch for each &open;sub&close;panel" entry:"1692122434" modified:"1692122452" priority:"M" status:"pending" tags:"feat,themes" tags_feat:"x" tags_themes:"x" uuid:"ca17838d-958f-498b-bff5-a24576820ae7"] -[description:"handle prompts: for some commands like delete, taskwarrior setup an interactive prompt, which needs to be handled." entry:"1692122614" modified:"1692122614" status:"pending" tags:"bug" tags_bug:"x" uuid:"e2480c4b-4c73-4d03-8568-82f14ade7b38"] [description:"semantic colors: allow coloring by values, not just fields." entry:"1692255328" modified:"1692953258" start:"1692953258" status:"pending" tags:"feat,themes" tags_feat:"x" tags_themes:"x" uuid:"1a5aab4a-0c2b-444f-9259-6eddc29b9791"] [description:"theme config: use taskwarrior theme config and extends from there." entry:"1692471868" modified:"1692600275" priority:"H" status:"pending" tags:"feat,themes" tags_feat:"x" tags_themes:"x" uuid:"6b248843-1b11-487b-85e8-a96e668f6772"] diff --git a/.task/undo.data b/.task/undo.data index 5716de9..3f784ef 100644 --- a/.task/undo.data +++ b/.task/undo.data @@ -268,3 +268,27 @@ time 1692953258 old [description:"semantic colors: allow coloring by values, not just fields." entry:"1692255328" modified:"1692255328" status:"pending" tags:"feat,themes" tags_feat:"x" tags_themes:"x" uuid:"1a5aab4a-0c2b-444f-9259-6eddc29b9791"] new [description:"semantic colors: allow coloring by values, not just fields." entry:"1692255328" modified:"1692953258" start:"1692953258" status:"pending" tags:"feat,themes" tags_feat:"x" tags_themes:"x" uuid:"1a5aab4a-0c2b-444f-9259-6eddc29b9791"] --- +time 1692954664 +old [description:"handle prompts: for some commands like delete, taskwarrior setup an interactive prompt, which needs to be handled." entry:"1692122614" modified:"1692122614" status:"pending" tags:"bug" tags_bug:"x" uuid:"e2480c4b-4c73-4d03-8568-82f14ade7b38"] +new [description:"handle prompts: for some commands like delete, taskwarrior setup an interactive prompt, which needs to be handled." entry:"1692122614" modified:"1692954664" status:"pending" tags:"bug,wontfix" tags_bug:"x" tags_wontfix:"x" uuid:"e2480c4b-4c73-4d03-8568-82f14ade7b38"] +--- +time 1692954669 +old [description:"handle prompts: for some commands like delete, taskwarrior setup an interactive prompt, which needs to be handled." entry:"1692122614" modified:"1692954664" status:"pending" tags:"bug,wontfix" tags_bug:"x" tags_wontfix:"x" uuid:"e2480c4b-4c73-4d03-8568-82f14ade7b38"] +new [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"] +--- +time 1692954684 +old [description:"more themes" entry:"1691864624" modified:"1692600330" status:"pending" tags:"themes" tags_themes:"x" uuid:"9ee183d4-3413-4efa-ba68-10d709669c05"] +new [description:"more themes" entry:"1691864624" modified:"1692954684" priority:"L" status:"pending" tags:"themes" tags_themes:"x" uuid:"9ee183d4-3413-4efa-ba68-10d709669c05"] +--- +time 1692954693 +old [description:"fix escaped add: when passing add with escapable characters, bug ensues." entry:"1691774077" modified:"1691774077" status:"pending" tags:"bug" tags_bug:"x" uuid:"79e1ba11-15ae-489f-9868-ab6adea40a91"] +new [description:"fix escaped add: when passing add with escapable characters, bug ensues." entry:"1691774077" modified:"1692954693" priority:"L" status:"pending" tags:"bug" tags_bug:"x" uuid:"79e1ba11-15ae-489f-9868-ab6adea40a91"] +--- +time 1692954709 +old [description:"hide old done tasks: Hide tasks with last status that haven t been touched since a long time." entry:"1691773751" modified:"1692122496" priority:"M" status:"pending" tags:"feat" tags_feat:"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." entry:"1691773751" modified:"1692954709" priority:"M" status:"pending" tags:"feat,wontfix" tags_feat:"x" tags_wontfix:"x" uuid:"e18707b4-304d-41f3-8504-89476cd796f5"] +--- +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"] +--- diff --git a/taskwarrior-deluxe.py b/taskwarrior-deluxe.py index 331e9e6..7044925 100755 --- a/taskwarrior-deluxe.py +++ b/taskwarrior-deluxe.py @@ -317,7 +317,7 @@ class sections: groups = self.group(tasks) for key in self.order(groups): if key in groups: - sections.append( rich.panel.Panel(self.stacker(groups[key]), title = rich.text.Text(str(key).upper(), style=key), title_align = "left", expand = False)) + sections.append( rich.panel.Panel(self.stacker(groups[key]), title = rich.text.Text(str(key).upper(), style=key), title_align = "left", expand = True)) return rich.console.Group(*sections) class Horizontal(Sectioner):