Thomas Lauf
6d79ea4a6d
Update copyright statements
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-09-18 12:33:17 +02:00
Thomas Lauf
9299fd3e39
Apply Clang-Tidy
...
Use emplace_back instead of push_back
Use 'nullptr'
Use function 'empty ()' instead of 'size () == 0'
Mark single-argument constructors as 'explicit'
Call static function correctly
2023-06-17 14:19:02 +02:00
Thomas Lauf
2535c2c399
Cleanup includes
...
- Remove unused includes
- Use '<..>' style consistently
- Strip any paths from include
- Replace deprecated C++ headers
- Sort includes according to LLVM rules
https://llvm.org/docs/CodingStandards.html#include-style
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-06-17 14:19:02 +02:00
Thomas Lauf
14bed139f6
Update copyrights
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-04-04 22:44:44 +02:00
Thomas Lauf
fd1e26eff3
Add configurable default range for report 'gaps'
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-04-02 18:50:35 +02:00
Thomas Lauf
fabf70faa3
Add default value to Rules::getBoolean
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2022-12-29 14:07:41 +01:00
Thomas Lauf
cbf87fc42e
Clang-Tidy: Use emplace_back instead of push_back
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2022-09-14 22:12:44 +02:00
Thomas Lauf
0edef6eda4
Use more efficient overload with character
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2021-05-16 12:45:38 +02:00
Tomas Babej
e5870380a4
doc: Update copyright to 2021
2021-01-02 02:52:39 -05:00
Shaun Ruffell
a1e2def1a8
Introduce 'journal.size' config setting.
...
Allows the user to specify a maximum number of entries to store in the
undo file. By default the behavior is unchanged, and the file will grow
unbounded without user intervention.
journal.size = 0 will disable storing any entries, journal.size < 0
indicates that the size of the journal should be unlimited (the
default), otherwise it indicates the number of entries to store.
Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
2020-08-10 22:24:52 +02:00
Thomas Lauf
ad58309159
Update Copyright
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-04-19 12:41:23 +02:00
Shaun Ruffell
213eb44954
Do not always create timewarrior.cfg file
...
I tried placing my timewarrior database in Dropbox and noticed that everytime
I ran a command, Dropbox would indicate that it was syncing. Running fswatch
on macOS I saw that there was an event for timewarrior.cfg on every run. This
change eliminates the file system events when not writing to the database.
Related to #284
2020-02-23 19:03:40 +01:00
Shaun Ruffell
4b3a907cbb
Use AtomicFile for data, tags, undo, and config files
...
Now changes accross all of these files either happen all together or not
at all.
Related to issue #155
2020-02-23 19:03:40 +01:00
Thomas Lauf
d64017a7a6
Update copyright dates
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-10-18 10:59:16 +02:00
Thomas Lauf
f72c4fda52
Extract class Journal from class Database
...
- const-ify Transaction and UndoAction
- Clang-tidying
2019-06-19 18:05:44 +02:00
Thomas Lauf
6f439097d6
Make use of a default value
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-11 10:46:39 +02:00
Thomas Lauf
0688e3ba07
#9 TI-1: Move static functions (un)setConfigVariable(...) to Rules
2018-07-24 08:07:10 +02:00
Thomas Lauf
2c5812f7a3
Use the empty method to check for emptiness instead of comparing to an empty object
2018-05-10 20:57:22 +02:00
Simon Ruderich
2271bd9eea
Use https:// link for opensource.org
2018-03-16 23:11:08 +01:00
Paul Beckingham
7cc8618c80
Rules: Added support for the platform-dependent behavior of strtoimax
2017-04-08 13:38:11 -04:00
Paul Beckingham
2dd14c0b4c
Cleanup: Greater use of const
2017-02-25 15:20:18 -05:00
Paul Beckingham
848c6e33fc
CmdChart: Default value handling
...
- Added default value ('15') for 'rules.<type>.cell'.
- Corrected EINVAL and ERANGE handling inside Rule::getInteger.
- Made the error message for the above more specific.
- Added the '> 0' constraint to the man page.
2017-02-25 13:00:20 -05:00
Paul Beckingham
887e419ed4
Rules: Corrected errno values
2016-11-05 11:42:40 -04:00
Paul Beckingham
2eeb374aba
Rules: Added conversion failure detection
2016-11-05 11:35:13 -04:00
Jelle van der Waa
c33a3a9d9a
Add defaultValue argument to Rules::getInteger
...
The defaultValue can be used for callers who do not want 0 to be
returned when conversion fails since strtoimax returns 0 when the
conversion fails.
2016-11-05 11:29:52 -04:00
Paul Beckingham
4c0a212c3c
Rules: Added minimal theme colors
2016-08-08 22:56:27 -04:00
Paul Beckingham
935145eb9b
Rules: Typo
2016-08-05 17:41:09 -04:00
Paul Beckingham
082eca0679
CmdChart: Renamed 'reports.<type>.style=compact' to 'reports.<type>.axis=internal'
2016-07-17 10:42:09 -04:00
Paul Beckingham
254d95cc41
Rules: Added defaults for chart cell size
2016-06-30 17:15:49 -04:00
Paul Beckingham
193644cd88
Rules: Added default holiday display for the summary report
2016-05-30 10:14:00 -04:00
Paul Beckingham
6688e98c1a
CmdChart: Renamed rc.reports.<type>.24h to rc.reports.<type>.hours with 'all' or 'auto' as values
2016-05-29 15:44:52 -04:00
Paul Beckingham
b2a8a0abfb
Rules: Added defaults for showing holidays on charts
2016-05-29 14:38:55 -04:00
Paul Beckingham
6b2b7b19e3
CmdGaps: Now supports report.gaps.range setting
2016-05-28 14:34:47 -04:00
Paul Beckingham
5593621198
Rules: day report no longer shows totals
2016-05-21 16:31:38 -05:00
Paul Beckingham
ffeb1d774c
Rules: Added more report defaults
2016-05-21 15:45:33 -05:00
Paul Beckingham
2ccafd0765
Rules: Added more report configuration defaults
2016-05-20 15:27:47 -05:00
Paul Beckingham
9b5774a725
Rules: Added report configuration defaults
2016-05-20 12:06:35 -05:00
Paul Beckingham
bd5121e2c8
Rules: Fixed bug where all values were tokenized, thereby introducing spaces
2016-05-10 19:54:27 -04:00
Paul Beckingham
d7ad32b6d3
Rules: Removed unused method
2016-05-10 19:51:54 -04:00
Paul Beckingham
b441f0c020
Rules: Simplified rule parsing
2016-05-05 19:47:53 -04:00
Paul Beckingham
35330b3f09
Rules: Added ::isRuleType
2016-05-05 19:36:55 -04:00
Paul Beckingham
28b78f94f5
CmdReport: Renamed 'version' to 'temp.version' to reflect that it's added automatically
2016-05-02 17:16:18 -04:00
Paul Beckingham
dca99349d9
Rules: Allows 'define report x:' to grouping settings
2016-04-29 18:21:14 -04:00
Paul Beckingham
49715320ef
Cleanup: Replaced "\n" with '\n'
2016-04-23 13:30:54 -04:00
Paul Beckingham
bef3bfbb27
Rules: Sets up defaults in ctor
2016-04-06 00:17:45 -04:00
Paul Beckingham
a4d767fdcf
Rules: Flipped !quiet --> verbose
2016-04-06 00:06:24 -04:00
Paul Beckingham
6988e81319
Rules: Added default values (off) for 'debug' and 'quiet'
2016-04-05 22:57:40 -04:00
Paul Beckingham
2a47f769cd
Cleanup: Removed 'const auto', which is implied by the container
2016-04-05 22:55:18 -04:00
Paul Beckingham
3cf09863d4
Rules: Added default 'version' setting
2016-03-28 22:55:31 -04:00
Paul Beckingham
fa1863d032
Rules: Removed useless debugging code
2016-03-28 00:35:02 -04:00