From 1a79f0b99e73b268d732a8c71e40f71deeb976cf Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 2 Oct 2021 09:49:11 -0400 Subject: [PATCH] CmdNews: Add news item about context-specific configuration overrides --- src/commands/CmdNews.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/commands/CmdNews.cpp b/src/commands/CmdNews.cpp index a9dea591b..5f167d413 100644 --- a/src/commands/CmdNews.cpp +++ b/src/commands/CmdNews.cpp @@ -416,6 +416,30 @@ void CmdNews::version2_6_0 (std::vector& items) { "" ); items.push_back(by_modifier); + + ///////////////////////////////////////////////////////////////////////////// + // - Context-specific configuration overrides + + NewsItem context_config ( + false, + "Context-specific configuration overrides", + "", + "", + " Any context can now define context-specific configuration overrides\n" + " via context..rc.=.\n", + " This allows the user to customize the behaviour of Taskwarrior in a given context,\n" + " for example, to change the default command in the 'work' context to 'overdue':\n" + "\n" + " $ task config context.work.rc.default.command overdue\n" + "\n" + " Another example would be to ensure that while context 'work' is active, tasks get\n" + " stored in a ~/.worktasks directory:\n" + "\n" + " $ task config context.work.rc.data.location=~/.worktasks", + "", + "" + ); + items.push_back(context_config); } ////////////////////////////////////////////////////////////////////////////////