summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-22 17:30:11 +0200
committerPaul Buetow <paul@buetow.org>2026-02-22 17:30:11 +0200
commitd0df0bc6b03738634d1eca37a75c83ad3eadb457 (patch)
treee8b85736dc7a9dca6c24f4d4e738f5ba51f67fe3 /scripts
parentd3c337838f99a8d66db7930e2f1ae1689496495e (diff)
fix: route work-tagged notes to task_add instead of worklog_add
Notes with 'work' tag were routed to worklog_add! which wrote a raw txt file to worktime dir, losing the +work tag. Now they go through task_add! creating a proper Taskwarrior task with +work that gets exported to worktime via taskwarrior::export. Amp-Thread-ID: https://ampcode.com/threads/T-019c85e5-1074-70cc-a6a3-9f1b68abee3d Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/taskwarriorfeeder.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/scripts/taskwarriorfeeder.rb b/scripts/taskwarriorfeeder.rb
index 117ca69..4fa4fde 100644
--- a/scripts/taskwarriorfeeder.rb
+++ b/scripts/taskwarriorfeeder.rb
@@ -173,8 +173,6 @@ begin
notes(opts[:notes_dirs].split(','), prefix, opts[:dry_run]) do |tags, note, due|
if tags.include?('skill') || tags.include?('skills')
skill_add!(note, opts[:dry_run])
- elsif tags.include? 'work'
- worklog_add!(:log, note, due, opts[:dry_run])
elsif tags.any? { |tag| tag.start_with?('share') }
gos_queue!(tags, note, opts[:dry_run])
else