Commit graph

2435 commits

Author SHA1 Message Date
Thomas Lauf
59f44e7ff2 Small refactoring
- use const and reference in fromJson
- reformat code
2018-10-08 21:42:25 +02:00
Thomas Lauf
b64f6f7568 Add round-trip tests 2018-10-08 21:42:25 +02:00
Thomas Lauf
043fea04e9 Fix case when JSON does not contain a start date 2018-10-08 21:42:25 +02:00
Thomas Lauf
af8cd7eb40 Refactor setRange 2018-10-08 21:42:25 +02:00
Thomas Lauf
1a24c49507 Extract creation of intervals into IntervalFactory 2018-10-08 21:42:25 +02:00
Thomas Lauf
8008cd8312 Add an example for undo to man page 2018-10-04 08:42:59 +02:00
Thomas Lauf
64fd98a2bd Add help and man page for command 'undo' 2018-09-27 22:02:15 +02:00
Thomas Lauf
1000a315ca Add examples for timew-cancel 2018-09-19 07:31:26 +02:00
Thomas Lauf
6236dc13de Add some line-breaks 2018-09-19 07:31:26 +02:00
Thomas Lauf
091449c423 Fix copyright statement 2018-09-19 07:31:26 +02:00
Thomas Lauf
f3f06ac016 Add command listing 2018-09-19 07:31:26 +02:00
Thomas Lauf
96b74946c2 Add OPTIONS section
- Rename section SUBCOMMANDS to "TIMEWARRIOR COMMANDS"
2018-09-19 07:31:26 +02:00
Thomas Lauf
836b9d24e7 Improve timew SYNOPSIS 2018-09-19 07:31:26 +02:00
Thomas Lauf
98efcef2df One sentence, one line. Replace empty lines with null requests 2018-09-19 07:31:26 +02:00
Thomas Lauf
a03de8c348 Align "SEE ALSO" sections 2018-09-19 07:31:26 +02:00
Thomas Lauf
f53c6c4412 Add EXAMPLES section 2018-09-19 07:31:26 +02:00
Thomas Lauf
81056986ab Remove empty lines at end of file 2018-09-19 07:31:26 +02:00
Thomas Lauf
bf9d4d3d68 Add "SEE ALSO" section 2018-09-19 07:31:26 +02:00
Thomas Lauf
e048d63d15 Put each sentence into separate line 2018-09-19 07:31:26 +02:00
Thomas Lauf
e36f658f37 Remove old command syntax description 2018-09-19 07:31:26 +02:00
Thomas Lauf
54468edcad Replace empty lines with null requests 2018-09-19 07:31:26 +02:00
Thomas Lauf
58ed4d9ba8 Add DESCRIPTION section 2018-09-19 07:31:26 +02:00
Thomas Lauf
91f02a4866 Add SYNOPSIS section 2018-09-19 07:31:26 +02:00
Thomas Lauf
642fa26cb4 Add mandatory NAME section 2018-09-19 07:31:26 +02:00
Thomas Lauf
9b0244a4e6 Add obligatory text heading 2018-09-19 07:31:26 +02:00
Thomas Lauf
7dd16c4950 Extract commands into individual man pages 2018-09-19 07:31:26 +02:00
Thomas Lauf
fcd49c2a02 Update ChangeLog 2018-09-19 07:02:51 +02:00
Thomas Lauf
c0039b6ff5 Add convenience method to set range with two dates 2018-09-19 06:32:56 +02:00
Thomas Lauf
9dd106116c Let Interval inherit from Range
- Remove 1 level of indirection
- Remove public field Interval::range (instead use interval directly)
2018-09-19 06:32:56 +02:00
Thomas Lauf
0d33700336 Update ChangeLog 2018-09-18 22:39:54 +02:00
Thomas Lauf
9e1e604108 Rename Range::overlap to Range::overlaps 2018-09-18 21:06:33 +02:00
Thomas Lauf
c48063dec7 Remove unnecessary check from Range::startsWithin/endsWithin 2018-09-18 21:06:33 +02:00
Thomas Lauf
6f79313519 Simplify Range::encloses with Range::startsWithin && Range::endsWithin 2018-09-18 21:06:33 +02:00
Thomas Lauf
1a54bb5c37 Fix corner cases in startsWithin/endsWithin 2018-09-18 21:06:33 +02:00
Thomas Lauf
bd65b67248 Add endsWithin(Range...)
- use startsWithin/endsWithin in autoAdjust(...)
- use Range::contains in startsWithin/endsWithin
2018-09-18 21:06:33 +02:00
Thomas Lauf
592e2853e0 Move debug output about overlaps where it matters 2018-09-18 21:06:33 +02:00
Thomas Lauf
f640eb4bc5 Remove splitting of intervals in storage files
- intervals are stored within the datafile which contains the starting date
- convert segmentContains to startsWithin and unify it
- Closes #174
2018-09-18 21:06:33 +02:00
Thomas Lauf
2f7e247859 Add tests for intervals enclosing month borders 2018-09-18 21:06:33 +02:00
Janik Rabe
fef522c53d Fix getTracked() when last interval is empty 2018-09-18 21:06:05 +02:00
Janik Rabe
4e08bcca4d #165: Add test for empty intervals at midnight 2018-09-18 21:04:09 +02:00
Janik Rabe
2976e43136 #101: Add test for full-month intervals 2018-09-18 21:04:09 +02:00
Janik Rabe
4325ffa136 Handle zero-width intervals correctly
Fixes #101
Fixes #165
Closes #164
2018-09-18 21:04:09 +02:00
Thomas Lauf
0273987ae6 Fix NPE when interval has no tags 2018-09-18 20:51:14 +02:00
Thomas Lauf
3c0627166a Update ChangeLog 2018-09-07 10:13:22 +02:00
Thomas Lauf
4f5eb6eb0c Make warning about new tags adhere to :quiet hint 2018-09-07 10:13:22 +02:00
Thomas Lauf
7771d94dee Update tests 2018-09-07 10:13:22 +02:00
Thomas Lauf
9b5793206f Remove old warnOnNewTag function 2018-09-07 10:13:22 +02:00
Thomas Lauf
f62767bc3d Some code clean-up 2018-09-07 10:13:22 +02:00
Thomas Lauf
a7da0438ca Connect database and tag-info database 2018-09-07 10:13:22 +02:00
Thomas Lauf
b32237cfb8 Add a toJson method to database
- only tag information for tags with count>0 is written out
2018-09-07 10:13:22 +02:00