GothenburgBitFactory / GothenburgBitFactory/taskwarrior

When context is defined with negative tag filter it prepends "-<tag name> " to any task description when created within this context.

Open
#2,711 2 comments 3 reactions 0 assignees View on GitHub
topic:context type:bug
Dominant language
C++
Stars
6.1k
Forks
423
Avg merge
1d 19h
Merged PRs (30d)
11

Description

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
```
1. Define a context like `task context define work -others`
2. Enter the context: `task context work`
3. Create new task: `task add New sample thing`
4. Run `task`

The output in the _Description_ column should be `New sample thing` but instead is `-others New sample thing`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.