From 0e0f7fbd20c94e7ff0c6cd916a22d42572914156 Mon Sep 17 00:00:00 2001 From: nojhan Date: Fri, 8 Sep 2023 16:21:10 +0200 Subject: [PATCH] better arrow icons --- .task/backlog.data | 1 + .task/completed.data | 1 + .task/pending.data | 1 - .task/undo.data | 4 ++++ taskwarrior-deluxe.py | 6 +++--- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.task/backlog.data b/.task/backlog.data index 078de6c..dec72e3 100644 --- a/.task/backlog.data +++ b/.task/backlog.data @@ -110,3 +110,4 @@ {"description":"test","end":"20230901T095856Z","entry":"20230901T095852Z","modified":"20230901T095856Z","status":"completed","uuid":"4ecaeb6a-372e-425f-8a12-9a2ec3d70755"} {"description":"systematic icons: add a systematic way to insert icons after\/before any field","entry":"20230829T153938Z","modified":"20230901T100942Z","priority":"H","status":"pending","uuid":"be1a6eb3-3406-44d1-957a-e952c0d69f2a","tags":["feat","themes"]} {"description":"visual deps: find an efficient way to show dependencies","entry":"20230831T193007Z","modified":"20230901T101000Z","priority":"M","status":"pending","uuid":"b3bd2bc3-3857-42b9-8168-5e21bcddbec5","tags":["design","feat"]} +{"description":"up\/down dirs: display summary of databases further up or down the current one.","end":"20230908T142102Z","entry":"20230830T193035Z","modified":"20230908T142102Z","priority":"H","status":"completed","uuid":"03998ee8-9917-49cf-a6cb-3fdd14a7deb3","tags":["feat"]} diff --git a/.task/completed.data b/.task/completed.data index 5fac22f..7dfb66c 100644 --- a/.task/completed.data +++ b/.task/completed.data @@ -1,3 +1,4 @@ +[description:"up\/down dirs: display summary of databases further up or down the current one." end:"1694182862" entry:"1693423835" modified:"1694182862" priority:"H" status:"completed" tags:"feat" tags_feat:"x" uuid:"03998ee8-9917-49cf-a6cb-3fdd14a7deb3"] [description:"test" end:"1693562336" entry:"1693562332" modified:"1693562336" status:"completed" uuid:"4ecaeb6a-372e-425f-8a12-9a2ec3d70755"] [description:"semantic colors: allow coloring by values, not just fields." end:"1693550227" entry:"1692255328" modified:"1693550227" status:"completed" tags:"feat,themes" tags_feat:"x" tags_themes:"x" uuid:"1a5aab4a-0c2b-444f-9259-6eddc29b9791"] [description:"timezone: handle timezone in date conversion" end:"1693549411" entry:"1693507795" modified:"1693549411" status:"completed" tags:"bug" tags_bug:"x" uuid:"462b9cae-5fbb-4fcc-ab04-41cbd7a44546"] diff --git a/.task/pending.data b/.task/pending.data index 916b453..998917d 100644 --- a/.task/pending.data +++ b/.task/pending.data @@ -4,5 +4,4 @@ [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:"hashed color: add a hash&open;color1,rgb123,...&close; color tag allowing to randomly pick a stable color for items like tags" entry:"1693323512" modified:"1693323524" priority:"M" status:"pending" tags:"feat" tags_feat:"x" uuid:"22082221-a02a-4f85-901e-135a99c396c3"] [description:"systematic icons: add a systematic way to insert icons after\/before any field" entry:"1693323578" modified:"1693562982" priority:"H" status:"pending" tags:"feat,themes" tags_feat:"x" tags_themes:"x" uuid:"be1a6eb3-3406-44d1-957a-e952c0d69f2a"] -[description:"up\/down dirs: display summary of databases further up or down the current one." entry:"1693423835" modified:"1693423835" priority:"H" status:"pending" tags:"feat" tags_feat:"x" uuid:"03998ee8-9917-49cf-a6cb-3fdd14a7deb3"] [description:"visual deps: find an efficient way to show dependencies" entry:"1693510207" modified:"1693563000" priority:"M" status:"pending" tags:"design,feat" tags_design:"x" tags_feat:"x" uuid:"b3bd2bc3-3857-42b9-8168-5e21bcddbec5"] diff --git a/.task/undo.data b/.task/undo.data index 8708a25..f6b7cd4 100644 --- a/.task/undo.data +++ b/.task/undo.data @@ -407,3 +407,7 @@ time 1693563000 old [description:"visual deps: find an efficient way to show dependencies" entry:"1693510207" modified:"1693510207" status:"pending" tags:"design,feat" tags_design:"x" tags_feat:"x" uuid:"b3bd2bc3-3857-42b9-8168-5e21bcddbec5"] new [description:"visual deps: find an efficient way to show dependencies" entry:"1693510207" modified:"1693563000" priority:"M" status:"pending" tags:"design,feat" tags_design:"x" tags_feat:"x" uuid:"b3bd2bc3-3857-42b9-8168-5e21bcddbec5"] --- +time 1694182862 +old [description:"up\/down dirs: display summary of databases further up or down the current one." entry:"1693423835" modified:"1693423835" priority:"H" status:"pending" tags:"feat" tags_feat:"x" uuid:"03998ee8-9917-49cf-a6cb-3fdd14a7deb3"] +new [description:"up\/down dirs: display summary of databases further up or down the current one." end:"1694182862" entry:"1693423835" modified:"1694182862" priority:"H" status:"completed" tags:"feat" tags_feat:"x" uuid:"03998ee8-9917-49cf-a6cb-3fdd14a7deb3"] +--- diff --git a/taskwarrior-deluxe.py b/taskwarrior-deluxe.py index 968b007..fb86985 100755 --- a/taskwarrior-deluxe.py +++ b/taskwarrior-deluxe.py @@ -889,13 +889,13 @@ if __name__ == "__main__": uptaskfile = find_tasks(".task", task_dir.parent, config) if uptaskfile: uprelp = pathlib.Path(os.path.relpath(task_dir.parent, cwd)) - upreli = re.sub("\.\./*", "⮬", str(uprelp)) + upreli = re.sub("\.\./*", "⮤", str(uprelp)) upjdata = get_data(uptaskfile) console.print(w.rtext(f"{upreli} {uptaskfile.parent.name}/: ", swatch="parentdir"), end="") console.print(w.rtext(f"{len(upjdata)} tasks", swatch="parentdir.tasks")) # Relative path to the directory holding the task files. - rela = re.sub("\.\./*", "⮬", str(relp)) + rela = re.sub("\.\./*", "⮤", str(relp)) reli = re.sub("\.", "", rela) if reli: console.rule(w.rtext(f"{reli} {task_dir.name}", swatch="taskdir"), style=config["color.taskdir"]) @@ -911,7 +911,7 @@ if __name__ == "__main__": downtaskfile = find_tasks(".task", pathlib.Path(f), config) if downtaskfile and downtaskfile != taskfile: downrelp = pathlib.Path(os.path.relpath(task_dir.parent, cwd)) - downreli = re.sub("\.\./*", "⮯", str(downrelp)) + downreli = re.sub("\.\./*", "⮧ ", str(downrelp)) downjdata = get_data(downtaskfile) console.print(w.rtext(f"{downreli}./{downtaskfile.parent.name}: ", swatch="parentdir"), end="") console.print(w.rtext(f"{len(downjdata)} tasks", swatch="parentdir.tasks"))