Skip to content

--context flag to avoid changing global Taskwarrior context #737

Description

@GTonehour

I’d like to request a CLI option to set a Taskwarrior context for the current taskwarrior-tui process only, for example:

taskwarrior-tui --context c

Problem

Today, to open TUI in context c, I do:

task context c
taskwarrior-tui

But task context c changes Taskwarrior’s global context, which affects other terminals / already-open workflows. I often run multiple instances and want each one isolated.

Proposed behavior

Add a CLI flag (name could be --context or similar) that:

  • applies context only to that taskwarrior-tui process
  • does not persist or mutate global Taskwarrior context
  • coexists with existing options like --taskrc / --taskdata

Current workaround

Using separate taskrc files with context=... and launching via --taskrc works, but is less convenient than a direct flag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions