diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-22 17:30:11 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-22 17:30:11 +0200 |
| commit | d0df0bc6b03738634d1eca37a75c83ad3eadb457 (patch) | |
| tree | e8b85736dc7a9dca6c24f4d4e738f5ba51f67fe3 /scripts | |
| parent | d3c337838f99a8d66db7930e2f1ae1689496495e (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.rb | 2 |
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 |
