Commit graph

2587 commits

Author SHA1 Message Date
quazgar
01674283c6 MAINT: on-modify.timewarrior imports from future
This should fix #216.

Untested commit.
2019-06-04 16:41:32 +02:00
Thomas Lauf
27d6c9d6cf Update AUTHORS & ChangeLog
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-05-30 14:53:35 +02:00
Thomas Lauf
55370ea86c Show message if no data within given range
- Closes #191

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-05-28 22:51:57 +02:00
Thomas Lauf
8256b5e625 Removing a stray space char
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-05-28 21:17:26 +02:00
Thomas Lauf
4ef3e2b232 Update Changelog
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-05-18 18:49:01 +02:00
Thomas Lauf
037550b791 '-h' should show help
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-05-18 18:40:26 +02:00
Thomas Lauf
6bb4f981cb Merge branch '212-fix-help-handling' of git://github.com/sruffell/timewarrior into sruffell-212-fix-help-handling 2019-05-07 22:08:23 +02:00
Thomas Lauf
08d2a0e15a Add tests for command help
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-05-07 21:12:22 +02:00
Thomas Lauf
3f35f179e7 Fix typo
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-05-07 08:17:26 +02:00
Thomas Lauf
d39af37db2 Update libshared to 4178b49db1c5fed5006a4ab6aa2df3f9937f770b
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-05-03 17:04:07 +02:00
Thomas Lauf
295b7b78f4 Wrap emerge call with keep-alive script
- emerge takes longer than 10 minutes for some jobs to output something
- travis kills builds that do not output something for 10 minutes
- Workaround: add a keep-alive script that echos "RUNNING" every minute for one hour. This should keep the door open long enough for emerge to finish...

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-05-03 16:52:15 +02:00
Thomas Lauf
ba9cfc95b9 Rename variables
- for better readability

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-12 16:13:39 +02:00
Thomas Lauf
297d9e3c19 Remove comments
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-12 15:49:05 +02:00
Thomas Lauf
920e3b4019 Add field reference_hour, extract determination of color for hour label
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-11 23:13:41 +02:00
Thomas Lauf
a6b9e4204c Use fields directly instead of passing them as function parameters
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-11 22:43:27 +02:00
Thomas Lauf
0510b59460 Make cell width a field
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-11 22:23:48 +02:00
Thomas Lauf
5085c6ce99 Advertise Travis build status
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-11 16:56:24 +02:00
Thomas Lauf
b5dc745969 Add missing 'Z' to datetime string when using UTC
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-11 16:44:52 +02:00
Thomas Lauf
f0f49ebef9 Update AUTHORS & ChangeLog
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-11 16:42:19 +02:00
Thomas Lauf
186dd8e3de Fix padding for determined hour range (+1h before and after)
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-11 16:39:28 +02:00
Thomas Lauf
36d7b6f387 Consider open track only until reference datetime when determining hour range
- Close #107

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-11 16:39:28 +02:00
Thomas Lauf
b3799ede03 Use early return
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-11 16:07:57 +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
a672fd0647 Apply exclusions to open interval only within range within interval start and now
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-11 10:42:08 +02:00
Thomas Lauf
daec6b1fae Clean up .gitignore files
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-10 12:08:42 +02:00
Thomas Lauf
ea9a5e341e Make parameter 'configuration' a const reference
- Clang-Tidy: The parameter 'configuration' is copied for each invocation but only used as a const reference;

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-10 12:02:07 +02:00
Thomas Lauf
42cb7273cd Inject reference datetime (= now) into chart
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-10 12:00:25 +02:00
Thomas Lauf
69de6b4412 Replace fixed time with relative time when testing timew start <datetime>
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-09 16:23:37 +02:00
Thomas Lauf
b4a15b3c84 Use internal fields color_today and color_holiday in getDayColor
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-09 16:23:37 +02:00
Thomas Lauf
9fcadaee1c Reorder and group function declarations
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-09 16:23:37 +02:00
Thomas Lauf
58c392b0b9 Move color definitions into configuration 2019-04-09 16:23:37 +02:00
Thomas Lauf
4ef248b973 Extract more parameters into chart configuration 2019-04-09 16:23:37 +02:00
Thomas Lauf
e2bd076357 Extract chart configuration into separate class 2019-04-09 16:23:37 +02:00
Thomas Lauf
40ea90c000 Update libshared 2019-04-09 16:23:37 +02:00
Jonathan Neidel
750c5ac658 Fix typo 2019-04-09 16:18:39 +02:00
Jonathan Neidel
4a6e801dd8 Update link text and description 2019-04-09 16:18:39 +02:00
Jonathan Neidel
7df41ac26b Fix links
Make links clickable instead of showing them in a code block.
2019-04-09 16:18:39 +02:00
Shaun Ruffell
c76d004897 #212: "--help" should show help, not considered to be a tag.
This change makes any instance of '--help' on the command line to be made the
command for this particular invocation.
2019-04-07 16:48:24 -05:00
Jonathan Neidel
08c31b3c8c Fix typo
calendar-base -> calendar-based
2019-04-07 19:15:07 +02:00
Thomas Lauf
ef9a5b5a0a Rename variable day to dates, function current_date to default_dates 2019-03-02 18:01:56 +01:00
Thomas Lauf
b2fd299f33 Rename function random_minute to default_minutes 2019-03-02 18:00:19 +01:00
Thomas Lauf
29d54086f4 Fix sed RE for mac os x 2019-03-02 17:57:57 +01:00
Thomas Lauf
428d377b84 Add missing -r option to jot
- Otherwise output is always `0` and not a random number
2019-03-02 17:43:50 +01:00
Thomas Lauf
a6d97365fc Add special handling for mac os x (mojave/darwin18)
- date does not have option `--rfc-3339`
- `rand` is not available, use `jot` instead
2019-03-02 17:01:55 +01:00
Thomas Lauf
f05596fa1d Extract generation of current date into function 2019-03-02 16:59:36 +01:00
Thomas Lauf
e6b409144d Extract generation of random minute into function 2019-03-02 16:58:50 +01:00
Thomas Lauf
544ebfadb7 Extract generation of default hours 2019-03-02 16:57:28 +01:00
Thomas Lauf
b248f13172 Add check for installed libfaketime 2019-03-02 16:55:47 +01:00
Thomas Lauf
5c6bd53e02 Fix file mode 2019-02-27 22:08:29 +01:00
Thomas Lauf
c1ada61a85 Fix undo.t
- resulting interval has union of tags of all joined intervals
2019-02-27 21:26:10 +01:00