Tomas Babej
5c3cf0f438
CLI2: Implement inserting modification arguments
...
Method to inject mods into the command, to be used by writeable context.
2021-04-03 15:01:39 -04:00
Tomas Babej
9128798fee
CLI2: Generalize 'add' to insert arguments at arbitrary position
2021-04-03 15:01:39 -04:00
Tomas Babej
a2c3d224d3
CLI2: Generalize _context_filter_added latch name
2021-04-03 15:01:39 -04:00
Tomas Babej
456dfdc8cf
CLI2: Handle empty parentheses expressions
...
Since taskwarrior is a CLI tool, it is likely that it is interacted with
programmatically. As such, expressions that a human would not type, but
are syntactically correct are bound to occur. In particular, task
currently is not able to handle empty parentheses expressions:
task +PENDING '(' ')'
This is due to "and" operator being injected between +PENDING (which
translates to '( status = pending )' and '('.
Modify the insertJunctions to not insert the 'and' operator between two
sub-expressions if one of them is an empty parentheses expression.
Closes #1896 .
2021-01-30 21:40:41 -05:00
Tomas Babej
a1471b67fb
CLI2: Do not attempt to evaluate values of string attributes
2021-01-30 21:40:41 -05:00
Tomas Babej
9017cd6e53
doc: Update copyright to 2021
2021-01-02 02:48: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
e3e158bf6a
Revert "[clang-tidy] Replace push_back with emplace_back"
...
This reverts commit 897759e4dc .
2020-12-05 16:18:37 -05:00
Paul Beckingham
ead50d4d6e
Revert "[clang-tidy] Use default to initialize constructors"
...
This reverts commit bf40ea8816 .
2020-12-05 16:18:37 -05:00
Paul Beckingham
aa841f98c9
Revert "[clang-tidy] Add const where it makes sense"
...
This reverts commit defd49b13d .
2020-12-05 16:18:37 -05:00
Paul Beckingham
8cf4e3de08
Revert "[clang-tidy] Access static member through qualified-id"
...
This reverts commit 6cd15235be .
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
3eb209f248
Revert "[clang-tidy] Use '' for single characters"
...
This reverts commit e3ceda9ce1 .
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
364b4ea8bd
Revert "[clang-tidy] Simplify boolean expressions"
...
This reverts commit 51870dff34 .
2020-12-05 16:18:37 -05:00
Paul Beckingham
6ad1b7d0da
Revert "[clang-tidy] match loop size with size()"
...
This reverts commit 68c446ea08 .
2020-12-05 16:18:37 -05:00
Rosen Penev
68c446ea08
[clang-tidy] match loop size with size()
...
Found with bugprone-too-small-loop-variable
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-12-05 15:03:43 -05:00
Rosen Penev
51870dff34
[clang-tidy] Simplify boolean expressions
...
Found with readability-simplify-boolean-expr
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
e3ceda9ce1
[clang-tidy] Use '' for single characters
...
Found with performance-faster-string-find
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
6cd15235be
[clang-tidy] Access static member through qualified-id
...
Found readability-static-accessed-through-instance
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-12-05 15:03:43 -05:00
Rosen Penev
defd49b13d
[clang-tidy] Add const where it makes sense
...
Found with readability-redundant-string-init
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-12-05 15:03:43 -05:00
Rosen Penev
bf40ea8816
[clang-tidy] Use default to initialize constructors
...
Found with modernize-use-equals-default
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-12-05 15:03:43 -05:00
Rosen Penev
897759e4dc
[clang-tidy] Replace push_back with emplace_back
...
Found with modernize-use-emplace
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
taiyu
d2b1662a39
Simplify CLI2::get* methods. allow rc=...
2019-02-07 08:41:25 -05:00
taiyu
8514071f19
applyOverrides: add messages after overrides
2019-02-07 08:41:25 -05:00
Tomas Babej
8066e4e6e2
meta: Update copyright year
2019-01-01 08:46:21 -05:00
Kirill Bobyrev
5cdbe6d019
Use nullptr instead lf C-styled NULL
2018-03-07 22:21:28 +03: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
751ae17b22
TW-1947: "urgency.over" filter seems to not work correct
...
- Thanks to Marc Richter.
2018-01-24 23:57:44 -05:00
Paul Beckingham
016bb94d3f
l10n: Eliminated i18n.h
2018-01-21 23:29:59 -05:00
Paul Beckingham
7022c434fd
l10n: Eliminated some column labels
2018-01-21 19:35:23 -05:00
Paul Beckingham
f43b51cf85
l10n: Eliminated STRING_TRIVIAL_INPUT
2018-01-20 13:52:41 -05:00
Paul Beckingham
69bf268e42
l10n: Eliminated STRING_PARSER_*
2018-01-20 13:46:39 -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
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 Fenwick
0d682ee7a9
Docs/CLI2: Additional dev docs for applyOverrides
2017-12-02 12:46:55 -05:00
Paul Beckingham
ae25bd9f2c
TW-1869 segmentation fault (on unusual installation)
...
- Thanks to Eric Hymowitz.
2017-01-24 19:13:59 -05:00
Paul Beckingham
a50e65a134
Copyright update
2017-01-01 12:30:04 -05:00
Paul Beckingham
7a43183a3f
CLI2: Corrected str_replace calls
2016-12-11 16:09:16 -05:00
Paul Beckingham
355620c640
libhsared: migrating from local to libshared
2016-12-06 07:20:45 -05:00
Paul Beckingham
95f4989f77
Cleanup: Don't use string literals when character literals are needed
2016-10-14 22:27:34 -04:00
Paul Beckingham
ec4e6af00d
CLI2: C++11
2016-02-03 21:44:28 -05:00