summaryrefslogtreecommitdiff
path: root/ar/.local/bin/task/taskwarrior-tui/toggle-review-label
blob: 9133c30ae986f07d160eec2d8e96f0e969dd44ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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