Commit graph

2395 commits

Author SHA1 Message Date
Thomas Lauf
481a445a86 Add test for undoing 'timew annotate' 2018-10-12 08:01:13 +02:00
Thomas Lauf
4218580a27 Update ChangeLog 2018-10-10 22:23:07 +02:00
Thomas Lauf
3678c2cdc3 Add hint :annotations to display annotation column in summary (default: hidden) 2018-10-10 22:10:01 +02:00
Thomas Lauf
a35b9d6660 Add annotation column to summary 2018-10-10 21:38:57 +02:00
Thomas Lauf
fc1761e700 Fix behaviour when 'timew annotate' is called without annotation string 2018-10-10 20:42:01 +02:00
Thomas Lauf
0e43feed3c Add tests for 'timew annotate' 2018-10-10 20:42:01 +02:00
Thomas Lauf
63bb079f5e Update CmdHelp with help about 'timew annotate' 2018-10-10 15:50:11 +02:00
Thomas Lauf
3e867fbde3 Add man page for command 'annotate' 2018-10-09 17:01:03 +02:00
Thomas Lauf
58e7cec118 Added first version of command 'annotate'
Closes #68
Closes #77
2018-10-09 17:00:36 +02:00
Thomas Lauf
0077768843 Add annotations to intervals 2018-10-08 21:42:25 +02:00
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