diff options
| -rw-r--r-- | dotfiles/scripts/taskwarriorfeeder.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dotfiles/scripts/taskwarriorfeeder.rb b/dotfiles/scripts/taskwarriorfeeder.rb index 80784c4..28018d4 100644 --- a/dotfiles/scripts/taskwarriorfeeder.rb +++ b/dotfiles/scripts/taskwarriorfeeder.rb @@ -109,8 +109,9 @@ def task_schedule!(id, due, dry) run! "task modify #{id} due:#{due}", dry end +# Randomly schedule all unscheduled tasks but the ones with the +unsched tag def unscheduled_tasks - lines = `task due: 2>/dev/null`.split("\n").drop(1) + lines = `task -unsched due: 2>/dev/null`.split("\n").drop(1) lines.pop lines.map { |line| line.split.first }.each do |id| yield id if id.to_i.positive? |
