diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-01-24 20:35:27 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-01-24 20:35:27 +0900 |
| commit | c80a54e42b52ce297f0f2f71af23c562832025c7 (patch) | |
| tree | dcce8bb977a770f473325d48f6f70b21d9818a40 /ar/.local/bin/task/taskwarrior-tui/toggle-review-label | |
init
Diffstat (limited to 'ar/.local/bin/task/taskwarrior-tui/toggle-review-label')
| -rwxr-xr-x | ar/.local/bin/task/taskwarrior-tui/toggle-review-label | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ar/.local/bin/task/taskwarrior-tui/toggle-review-label b/ar/.local/bin/task/taskwarrior-tui/toggle-review-label new file mode 100755 index 0000000..9133c30 --- /dev/null +++ b/ar/.local/bin/task/taskwarrior-tui/toggle-review-label @@ -0,0 +1,13 @@ +#!/bin/sh + +uuid="$1" +# Use task _tags command to get current tags +current_tags=$(task _tags "$uuid") + +if echo "$current_tags" | grep -q "review"; then + # Remove review tag if present + task rc.bulk=0 rc.confirmation=off "$uuid" modify -review manual_priority: -next +else + # Add review tag if not present + task rc.bulk=0 rc.confirmation=off "$uuid" modify +review +fi |
