From d0df0bc6b03738634d1eca37a75c83ad3eadb457 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 22 Feb 2026 17:30:11 +0200 Subject: 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 --- scripts/taskwarriorfeeder.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3