Commit Graph

564 Commits

Author SHA1 Message Date
oxalica
2cb8f1d5ea Support relative include for themes in taskrc 2021-06-02 19:34:57 -04:00
Rosen Penev
ab7f5b0b51 clang-tidy: loop conversion
Found with modernize-loop-convert

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-04-23 09:13:22 -04:00
Paolo Capriotti
856b589bac Parse 'context' verbose token correctly 2021-04-11 20:32:42 -04:00
Tomas Babej
351c3b025c getTaskContext: Allow getting context info for a non-active context 2021-04-03 15:01:39 -04:00
Tomas Babej
9a380887ee CLI2: Simplify context determination
Simlifies by offloading portion of the logic into the singleton Context
class (which has nothing to do with the task context per se, just a
implementation singleton).
2021-04-03 15:01:39 -04:00
Tomas Babej
0d1542ccd7 meta: Update various links to https 2021-03-12 07:58:04 -05:00
Tomas Babej
9017cd6e53 doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
Tomas Babej
eb32c9d8d7 Context: Correctly handle XDG_CONFIG_HOME paths ending with '/' 2020-12-10 23:49:00 -05:00
Tomas Babej
f0e34a7ef7 Context: Do not append .config if XDG_CONFIG_HOME is defined
- Thanks to Julien Rabinow.
2020-12-10 23:34:59 -05:00
Tomas Babej
5dc42df7d0 Context: Correctly respect empty XDG_CONFIG_HOME 2020-12-09 21:21:17 -05:00
Tomas Babej
1f98b9d128 Context: Adjust styling 2020-12-09 20:35:13 -05:00
Julien Rabinow
5256797ea9 add support for XDG_CONFIG_HOME 2020-12-09 20:15:22 -05:00
Julien Rabinow
46b553dd8c reorder code to be in same order as comments (intuitive order) 2020-12-09 20:15:22 -05:00
Julien Rabinow
1aa77c9ede fix home_dir variable definition 2020-12-09 20:15:22 -05:00
Paul Beckingham
3e0a428185 Revert "[clang-tidy] Use .empty instead of comparing size"
This reverts commit a331cceded.
2020-12-05 16:18:37 -05:00
Paul Beckingham
0a3a4d364d Revert "[clang-tidy] Use new range based loops"
This reverts commit a468537c1b.
2020-12-05 16:18:37 -05:00
Paul Beckingham
5502729131 Revert "[clang-tidy] Switch C headers to C++ ones"
This reverts commit 0344856d65.
2020-12-05 16:18:37 -05:00
Paul Beckingham
702af00435 Revert "[clang-tidy] Remove redundant const"
This reverts commit 55d103c491.
2020-12-05 16:18:37 -05:00
Paul Beckingham
c43a513158 Revert "[clang-tidy] Replace C style casts with C++ ones"
This reverts commit 13e1bf7204.
2020-12-05 16:18:37 -05:00
Rosen Penev
13e1bf7204 [clang-tidy] Replace C style casts with C++ ones
Found with google-readability-casting

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-05 15:03:43 -05:00
Rosen Penev
55d103c491 [clang-tidy] Remove redundant const
Found with readability-const-return-type

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-05 15:03:43 -05:00
Rosen Penev
0344856d65 [clang-tidy] Switch C headers to C++ ones
Found using modernize-return-braced-init-list

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-05 15:03:43 -05:00
Rosen Penev
a468537c1b [clang-tidy] Use new range based loops
Found with modernize-loop-convert

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-05 15:03:43 -05:00
Rosen Penev
a331cceded [clang-tidy] Use .empty instead of comparing size
Found with readability-container-size-empty

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-05 15:03:43 -05:00
Tomas Babej
a09f9d48ab Update copyright to 2020 2020-11-21 12:27:05 -05:00
Tomas Babej
6727d08da0 Context: Do not set new-uuid by default
This reverts part of f6b2a6541c, which
(likely accidentally) re-introduced the new-uuid verbosity setting as a
default.
2020-09-18 21:33:54 -04:00
Janik Rabe
f6b2a6541c Fix rc.verbose documentation in taskrc(5) 2019-02-14 08:02:58 -05:00
taiyu
fd441bdd62 increase cli priority, respect override verbosity. 2019-02-07 08:41:25 -05:00
Tomas Babej
8066e4e6e2 meta: Update copyright year 2019-01-01 08:46:21 -05:00
Paul Beckingham
bd221a5adc TW #2004: "shell" should not be expand to "exec tasksh"
- Thanks to Arvedui
2018-08-12 10:28:40 -04:00
Kirill Bobyrev
5cdbe6d019 Use nullptr instead lf C-styled NULL 2018-03-07 22:21:28 +03:00
Simon Ruderich
b92ab68ef6 Context: remove duplicate default value for rule.precedence.color 2018-03-06 21:54:08 +01:00
Simon Ruderich
e817dfc800 Always use https:// link for opensource.org
It was already used in a few places, make this consistent.
2018-03-04 14:53:07 +01:00
Mark Scannell
7af6db4c17 Portability: Updated to make main re-entrant()
- New INSTALL instructions to emscripten, and AUTHORS for contribution.
2018-01-31 19:45:07 -05:00
Paul Beckingham
038d9fe8db l10n: Eliminated STRING_CONTEXT_CREATE_RC 2018-01-15 11:48:15 -05:00
Paul Beckingham
e814daacf1 l10n: Eliminated STRING_CONTEXT_DATA_OVERRIDE 2018-01-15 11:45:34 -05:00
Paul Beckingham
06f7802a29 l10n: Eliminated STRING_CONTEXT_RC_OVERRIDE 2018-01-15 11:43:44 -05:00
Paul Beckingham
8f211c1a07 l10n: Eliminated STRING_CONTEXT_NEED_RC 2018-01-15 11:06:18 -05:00
Paul Beckingham
8ca8f9eb10 l10n: Eliminated STRING_CONFIG_BAD_WRITE 2018-01-15 11:04:23 -05:00
Paul Beckingham
2e9ea52a8d l10n: Eliminated STRING_ASSUME_INFO 2018-01-15 11:01:36 -05:00
Paul Beckingham
f00884998e l10n: Eliminated STRING_DATE_SUNDAY 2018-01-15 10:59:25 -05:00
Paul Beckingham
0b790f46a1 l10n removal of STRING_UNKNOWN_ERROR 2018-01-07 12:57:21 -05:00
Paul Beckingham
0de169bb10 Copyright 2018 2017-12-31 19:22:07 -05:00
Paul Fenwick
cc9e2a5076 [TW-1938] Resolve conflicts between new-id and new-uuid
- new-uuid is *not* set by default
- new-uuid overrides new-id when set

The reasoning is that new-uuid is mostly used by code (eg: Python's
taskw module), whereas new-id is mostly used by humans.

By making new-uuid not set by default, calling code can set it to
receive UUIDs (preserving 2.5.x behaviour), but humans can continue to
use integer task IDs.
2017-12-04 11:36:45 -08:00
Paul Fenwick
f6dee20777 CLI2/Context: Add vim hints
No need for vim to guess indent style with these handy vim hints!
2017-12-02 12:51:35 -05:00
Paul Fenwick
1fb19671c4 CLI2,Config: Add 'override' verbosity option
This allows for 'override' messages to be silenced without requiring
footnotes be completely disabled.

The 'override' verbosity implies 'footnotes'.
2017-12-02 12:51:14 -05:00
Paul Beckingham
e350142b19 Context: Selects Datetime/Duration features to match expectations 2017-03-19 10:00:25 -04:00
Paul Beckingham
0a137a852e Cleanup: Formatting 2017-03-19 09:59:20 -04:00
Paul Beckingham
cea0732d46 Context: Eliminated ISO8601 2017-03-04 21:46:05 -05:00
Paul Beckingham
0d3e92ed5d Context: Added local config load timing 2017-02-26 10:47:17 -05:00