taskwarrior
taskwarrior copied to clipboard
When context is defined with negative tag filter it prepends "-<tag name> " to any task description when created within this context.
DIAGNOSTICS
task 2.6.1
Platform: Linux
Compiler
Version: 9.3.0
Caps: +stdc +stdc_hosted +LP64 +c8 +i32 +l64 +vp64 +time_t64
Compliance: C++17
Build Features
CMake: 3.16.3
libuuid: libuuid + uuid_unparse_lower
libgnutls: 3.6.13
Build type: release
Configuration
File: /home/aris/.taskrc (found), 1710 bytes, mode 100664
Data: /home/aris/.task_test2 (found), dir, mode 40755
Locking: Enabled
GC: Enabled
rc.editor: vim
Server:
CA: -
Certificate: -
Key: -
Trust: strict
Ciphers: NORMAL
Creds:
Hooks
System: Enabled
Location: /home/aris/.task_test2/hooks
(-none-)
Tests
Terminal: 170x52
Dups: Scanned 15 tasks for duplicate UUIDs:
No duplicates found
Broken ref: Scanned 15 tasks for broken references:
No broken references found
- Define a context like
task context define work -others
- Enter the context:
task context work
- Create new task:
task add New sample thing
- Run
task
The output in the Description column should be New sample thing
but instead is -others New sample thing
same issue here, has appeared with upgrade to 2.6.1 for me
Found a solution for this - remove negative tag filters from the "write" config setting with:
task config context.{contextname}.write {only positive tag filters}
before:
task config context.work.write +work
or
task config context.work.write
after:
fixes the odd behaviour.
I presume this new behaviour will be eventually clarified in the documentation as well as with the little update message, but it could be more clear now.