Update EXAMPLES section

This commit is contained in:
Thomas Lauf 2019-02-21 23:46:16 +01:00
parent fc49a4003a
commit 1c85721876
24 changed files with 213 additions and 170 deletions

View file

@ -19,30 +19,31 @@ Using the right ID, you can identify an interval to annotate.
. .
.SH EXAMPLES .SH EXAMPLES
For example, show the IDs: For example, show the IDs:
. .RS
$ timew summary :week :ids $ timew summary :week :ids
. .RE
Then having selected '@2' as the interval you wish to annotate: Then having selected '@2' as the interval you wish to annotate:
. .RS
$ timew annotate @2 'Lorem ipsum...' $ timew annotate @2 'Lorem ipsum...'
. .RE
Note that you can annotate multiple intervals with the same annotation: Note that you can annotate multiple intervals with the same annotation:
. .RS
$ timew annotate @2 @10 @23 'Lorem ipsum dolor sit amet...' $ timew annotate @2 @10 @23 'Lorem ipsum dolor sit amet...'
. .RE
If there is active time tracking, you can omit the ID when you want to add annotations to the current open interval: If there is active time tracking, you can omit the ID when you want to add annotations to the current open interval:
. .RS
$ timew start foo $ timew start foo
$ timew annotate bar .br
. $ timew annotate bar
.RE
This results in the current interval having annotations 'foo' and 'bar'. This results in the current interval having annotations 'foo' and 'bar'.
. .
SH BUGS SH BUGS
Currently the annotation command picks the last token from the command line and uses it as annotation. Currently the annotation command picks the last token from the command line and uses it as annotation.
I.e. using no quotes in an annotation command like I.e. using no quotes in an annotation command like
. .RS
$ timew annotate @1 lorem ipsum dolor $ timew annotate @1 lorem ipsum dolor
. .RE
will result in interval @1 having only 'dolor' as its annotation. will result in interval @1 having only 'dolor' as its annotation.
. .
.SH "SEE ALSO" .SH "SEE ALSO"

View file

@ -10,23 +10,32 @@ timew-cancel \- cancel time tracking
If there is an open interval, it is abandoned. If there is an open interval, it is abandoned.
. .
.SH EXAMPLES .SH EXAMPLES
.TP Cancel with active time tracking .TP
. .B Cancel with active time tracking
.RS
.br
$ timew start $ timew start
.br
... ...
.br
$ timew cancel $ timew cancel
. .br
Canceled active time tracking. Canceled active time tracking.
.RE
.
This deletes the open interval. This deletes the open interval.
. .TP
Cancel with no active time tracking .B Cancel with no active time tracking
. .RS
.br
... ...
.br
$ timew stop $ timew stop
.br
$ timew cancel $ timew cancel
.br
There is no active time tracking. There is no active time tracking.
. .RE
Cancel has no effect, only a warning is printed. Cancel has no effect, only a warning is printed.
. .
.SH "SEE ALSO" .SH "SEE ALSO"

View file

@ -19,25 +19,30 @@ Allows setting and removing configuration values, as an alternative to directly
. .
.SH EXAMPLES .SH EXAMPLES
For example: For example:
. .RS
$ timew config verbose yes $ timew config verbose yes
$ timew config verbose '' .br
$ timew config verbose $ timew config verbose ''
. .br
$ timew config verbose
.RE
The first command sets 'verbose' to 'yes'. The first command sets 'verbose' to 'yes'.
The second sets it to a blank value which overrides the default value. The second sets it to a blank value which overrides the default value.
The third example deletes the 'verbose' setting. The third example deletes the 'verbose' setting.
. .
When modifying configuration in this way, interactive confirmation will be sought. When modifying configuration in this way, interactive confirmation will be sought.
To override this confirmation, use the ':yes' hint, which means you intend to answer 'yes' to the confirmation questions: To override this confirmation, use the ':yes' hint, which means you intend to answer 'yes' to the confirmation questions:
. .RS
$ timew config verbose '' :yes $ timew config verbose '' :yes
. .RE
If no arguments are provided, all configuration settings are shown: If no arguments are provided, all configuration settings are shown:
. .RS
$ timew config $ timew config
verbose = yes .br
... verbose = yes
.br
...
.RE
. .
.SH "SEE ALSO" .SH "SEE ALSO"
.BR timew-hints (1), .BR timew-hints (1),

View file

@ -20,11 +20,13 @@ Resumes tracking of closed intervals.
. .
.SH EXAMPLES .SH EXAMPLES
For example: For example:
. .RS
$ timew track 9am - 10am tag1 tag2 $ timew track 9am - 10am tag1 tag2
$ timew track 11am - 1pm tag3 .br
$ timew continue @2 $ timew track 11am - 1pm tag3
. .br
$ timew continue @2
.RE
The 'continue' command creates a new interval, starting now, and using the tags 'tag1' and 'tag2'. The 'continue' command creates a new interval, starting now, and using the tags 'tag1' and 'tag2'.
Using the 'summary' command and specifying the ':ids' hint shows interval IDs. Using the 'summary' command and specifying the ':ids' hint shows interval IDs.
This command is a convenient way to resume work without re-entering the tags. This command is a convenient way to resume work without re-entering the tags.

View file

@ -15,12 +15,13 @@ Using the right ID, you can identify an interval to delete.
. .
.SH EXAMPLES .SH EXAMPLES
For example, show the IDs: For example, show the IDs:
. .RS
$ timew summary :week :ids $ timew summary :week :ids
. .RE
Then having selected '@2' as the interval you wish to delete: Then having selected '@2' as the interval you wish to delete:
. .RS
$ timew delete @2 $ timew delete @2
.RE
. .
.SH "SEE ALSO" .SH "SEE ALSO"
.BR timew-cancel .BR timew-cancel

View file

@ -17,6 +17,6 @@ Supports filtering.
. .
.SH EXAMPLES .SH EXAMPLES
For example: For example:
. .RS
$ timew export from 2016-01-01 for 3wks tag1 $ timew export from 2016-01-01 for 3wks tag1
. .RE

View file

@ -15,16 +15,17 @@ Using the right ID, you can identify an interval to fill.
. .
.SH EXAMPLES .SH EXAMPLES
For example, show the IDs: For example, show the IDs:
. .RS
$ timew summary :week :ids $ timew summary :week :ids
. .RE
Then having selected '@2' as the interval you wish to fill: Then having selected '@2' as the interval you wish to fill:
. .RS
$ timew fill @2 $ timew fill @2
. .RE
Note that you can fill multiple intervals: Note that you can fill multiple intervals:
. .RS
$ timew fill @2 @10 @23 $ timew fill @2 @10 @23
.RE
. .
.SH "SEE ALSO" .SH "SEE ALSO"
.BR timew-hints (1) .BR timew-hints (1)

View file

@ -13,10 +13,10 @@ Validates the DOM reference, then obtains the value and displays it.
. .
.SH EXAMPLES .SH EXAMPLES
For example: For example:
. .RS
$ timew get dom.active $ timew get dom.active
1 1
. .RE
It is an error to reference an interval or tag that does not exist. It is an error to reference an interval or tag that does not exist.
. .
.SH "SEE ALSO" .SH "SEE ALSO"

View file

@ -22,12 +22,18 @@ The help command shows detailed descriptions and examples of commands, interval
. .
.SH EXAMPLES .SH EXAMPLES
For example: For example:
. .RS
$ timew help $ timew help
$ timew help start .br
$ timew help hints $ timew help start
$ timew help interval .br
$ timew help date $ timew help hints
$ timew help duration .br
$ timew help dom $ timew help interval
. .br
$ timew help date
.br
$ timew help duration
.br
$ timew help dom
.RE

View file

@ -14,12 +14,13 @@ Using the correct IDs, you can identify an intervals to join.
. .
.SH EXAMPLES .SH EXAMPLES
For example, show the IDs: For example, show the IDs:
. .RS
$ timew summary :week :ids $ timew summary :week :ids
. .RE
Then having selected '@1' and '@2' as the intervals you wish to join: Then having selected '@1' and '@2' as the intervals you wish to join:
. .RS
$ timew join @1 @2 $ timew join @1 @2
.RE
. .
.SH "SEE ALSO" .SH "SEE ALSO"
.BR timew-lengthen (1), .BR timew-lengthen (1),

View file

@ -16,16 +16,17 @@ Using the right ID, you can identify an interval to lengthen.
. .
.SH EXAMPLES .SH EXAMPLES
For example, show the IDs: For example, show the IDs:
. .RS
$ timew summary :week :ids $ timew summary :week :ids
. .RE
Then having selected '@2' as the interval you wish to lengthen: Then having selected '@2' as the interval you wish to lengthen:
. .RS
$ timew lengthen @2 10mins $ timew lengthen @2 10mins
. .RE
Note that you can lengthen multiple intervals,: Note that you can lengthen multiple intervals,:
. .RS
$ timew lengthen @2 @10 @23 1hour $ timew lengthen @2 @10 @23 1hour
.RE
. .
.SH "SEE ALSO" .SH "SEE ALSO"
.BR timew-modify (1), .BR timew-modify (1),

View file

@ -19,13 +19,14 @@ Using the right ID, you can identify an interval to modify.
. .
.SH EXAMPLES .SH EXAMPLES
For example, show the IDs: For example, show the IDs:
. .RS
$ timew summary :week :ids $ timew summary :week :ids
. .RE
.PP .PP
Then having selected '@3' as the interval you wish to modify: Then having selected '@3' as the interval you wish to modify:
. .RS
$ timew modify end @3 "${PACKAGE_DATE}"T17:00:00 $ timew modify end @3 "${PACKAGE_DATE}"T17:00:00
.RE
. .
.SH "SEE ALSO" .SH "SEE ALSO"
.BR timew-lengthen (1), .BR timew-lengthen (1),

View file

@ -14,12 +14,13 @@ Using the right ID, you can identify an interval to move.
. .
.SH EXAMPLES .SH EXAMPLES
For example, show the IDs: For example, show the IDs:
. .RS
$ timew summary :week :ids $ timew summary :week :ids
. .RE
Then having selected '@2' as the interval you wish to move: Then having selected '@2' as the interval you wish to move:
. .RS
$ timew move @2 9am $ timew move @2 9am
.RE
. .
.SH "SEE ALSO" .SH "SEE ALSO"
.BR timew-lengthen (1), .BR timew-lengthen (1),

View file

@ -19,8 +19,9 @@ timew-report \- run an extension report
.SH DESCRIPTION .SH DESCRIPTION
Runs an extension report, and supports filtering data. Runs an extension report, and supports filtering data.
The 'report' command itself is optional, which means that these two commands are equivalent: The 'report' command itself is optional, which means that these two commands are equivalent:
. .RS
$ timew report foo :week $ timew report foo :week
$ timew foo :week .br
. $ timew foo :week
.RE
This does however assume there is a 'foo' extension installed. This does however assume there is a 'foo' extension installed.

View file

@ -16,16 +16,17 @@ Using the right ID, you can identify an interval to resize.
. .
.SH EXAMPLES .SH EXAMPLES
For example, show the IDs: For example, show the IDs:
. .RS
$ timew summary :week :ids $ timew summary :week :ids
. .RE
Then having selected '@3' as the interval you wish to resize: Then having selected '@3' as the interval you wish to resize:
. .RS
$ timew resize @3 15mins $ timew resize @3 15mins
. .RE
Note that you can resize multiple intervals,: Note that you can resize multiple intervals,:
. .RS
$ timew resize @3 @1 @13 1hour $ timew resize @3 @1 @13 1hour
.RE
. .
.SH "SEE ALSO" .SH "SEE ALSO"
.BR timew-lengthen (1), .BR timew-lengthen (1),

View file

@ -16,16 +16,18 @@ Using the right ID, you can identify an interval to shorten.
. .
.SH EXAMPLES .SH EXAMPLES
For example, show the IDs: For example, show the IDs:
. .RS
$ timew summary :week :ids $ timew summary :week :ids
. .RE
.br
Then having selected '@2' as the interval you wish to shorten: Then having selected '@2' as the interval you wish to shorten:
. .RS
$ timew shorten @2 10mins $ timew shorten @2 10mins
. .RE
Note that you can shorten multiple intervals,: Note that you can shorten multiple intervals,:
. .RS
$ timew shorten @2 @10 @23 1hour $ timew shorten @2 @10 @23 1hour
.RE
. .
.SH "SEE ALSO" .SH "SEE ALSO"
.BR timew-lengthen (1), .BR timew-lengthen (1),

View file

@ -15,12 +15,13 @@ Using the right ID, you can identify an interval to split.
. .
.SH EXAMPLES .SH EXAMPLES
For example, show the IDs: For example, show the IDs:
. .RS
$ timew summary :week :ids $ timew summary :week :ids
. .RE
Then having selected '@2' as the interval you wish to split: Then having selected '@2' as the interval you wish to split:
. .RS
$ timew split @2 $ timew split @2
.RE
. .
.SH "SEE ALSO" .SH "SEE ALSO"
.BR timew-join (1), .BR timew-join (1),

View file

@ -18,13 +18,13 @@ If a tag contains multiple words, therefore containing spaces, use quotes to sur
. .
.SH EXAMPLES .SH EXAMPLES
For example, this command specifies two tags ('weekend' and 'Home & Garden'), the second of which requires quotes. For example, this command specifies two tags ('weekend' and 'Home & Garden'), the second of which requires quotes.
. .RS
$ timew start weekend 'Home & Garden' $ timew start weekend 'Home & Garden'
. .RE
An optional date may be specified to indicate the intended start of the tracked time: An optional date may be specified to indicate the intended start of the tracked time:
. .RS
$ timew start 8am weekend 'Home & Garden' $ timew start 8am weekend 'Home & Garden'
. .RE
If there is a previous open interval, it will be closed at the given start time. If there is a previous open interval, it will be closed at the given start time.
. .
Quotes are harmless if used unnecessarily. Quotes are harmless if used unnecessarily.

View file

@ -19,15 +19,18 @@ If no tags are specified, all tracking stops.
. .
.SH EXAMPLES .SH EXAMPLES
For example: For example:
. .RS
$ timew start tag1 tag2 $ timew start tag1 tag2
... .br
$ timew stop tag1 ...
. .br
$ timew stop tag1
.RE
Initially time is tracked for both 'tag1' and 'tag2', then 'tag1' tracking is stopped, leaving tag2 active. Initially time is tracked for both 'tag1' and 'tag2', then 'tag1' tracking is stopped, leaving tag2 active.
To stop all tracking: To stop all tracking:
. .RS
$ timew stop $ timew stop
.RE
. .
.SH "SEE ALSO" .SH "SEE ALSO"
.BR timew-cancel (1), .BR timew-cancel (1),

View file

@ -15,11 +15,13 @@ timew-summary \- display a time-tracking summary
.SH DESCRIPTION .SH DESCRIPTION
Displays a report summarizing tracked and untracked time for the current day by default. Displays a report summarizing tracked and untracked time for the current day by default.
Accepts date ranges and tags for filtering, or shortcut hints: Accepts date ranges and tags for filtering, or shortcut hints:
. .RS
$ timew summary monday - today $ timew summary monday - today
$ timew summary :week .br
$ timew summary :month $ timew summary :week
. .br
$ timew summary :month
.RE
The ':ids' hint adds an 'ID' column to the summary report output for interval modification. The ':ids' hint adds an 'ID' column to the summary report output for interval modification.
. .
.SH CONFIGURATION .SH CONFIGURATION

View file

@ -19,22 +19,23 @@ Using the right ID, you can identify an interval to tag.
. .
.SH EXAMPLES .SH EXAMPLES
For example, show the IDs: For example, show the IDs:
. .RS
$ timew summary :week :ids $ timew summary :week :ids
. .RE
Then having selected '@2' as the interval you wish to tag: Then having selected '@2' as the interval you wish to tag:
. .RS
$ timew tag @2 'New Tag' $ timew tag @2 'New Tag'
. .RE
Note that you can tag multiple intervals, with multiple tags: Note that you can tag multiple intervals, with multiple tags:
. .RS
$ timew tag @2 @10 @23 'Tag One' tag2 tag3 $ timew tag @2 @10 @23 'Tag One' tag2 tag3
. .RE
If there is active time tracking, you can omit the ID when you want to add tags to the current open interval: If there is active time tracking, you can omit the ID when you want to add tags to the current open interval:
. .RS
$ timew start foo $ timew start foo
$ timew tag bar .br
. $ timew tag bar
.RE
This results in the current interval having tags 'foo' and 'bar'. This results in the current interval having tags 'foo' and 'bar'.
. .
.SH "SEE ALSO" .SH "SEE ALSO"

View file

@ -17,10 +17,11 @@ Perhaps you forgot to record time, or are just filling in old entries.
. .
.SH EXAMPLES .SH EXAMPLES
For example: For example:
. .RS
$ timew track :yesterday 'Training Course' $ timew track :yesterday 'Training Course'
$ timew track 9am - 11am 'Staff Meeting' .br
. $ timew track 9am - 11am 'Staff Meeting'
.RE
Note that the track command expects a closed interval (start and end time), when recording. Note that the track command expects a closed interval (start and end time), when recording.
If a closed interval is not provided, the 'track' command behaves the same as the 'start' command. If a closed interval is not provided, the 'track' command behaves the same as the 'start' command.
. .

View file

@ -16,7 +16,8 @@ The 'undo' command itself cannot be undone!
.SH EXAMPLES .SH EXAMPLES
Undo an interval modification: Undo an interval modification:
. .RS
$ timew split @1 $ timew split @1
$ timew undo .br
. $ timew undo
.RE

View file

@ -19,22 +19,23 @@ Using the right ID, you can identify an interval to untag.
. .
.SH EXAMPLES .SH EXAMPLES
For example, show the IDs: For example, show the IDs:
. .RS
$ timew summary :week :ids $ timew summary :week :ids
. .RE
Then having selected '@2' as the interval you wish to untag: Then having selected '@2' as the interval you wish to untag:
. .RS
$ timew untag @2 'Old Tag' $ timew untag @2 'Old Tag'
. .RE
Note that you can untag multiple intervals, with multiple tags: Note that you can untag multiple intervals, with multiple tags:
. .RS
$ timew untag @2 @10 @23 'Old Tag' tag2 tag3 $ timew untag @2 @10 @23 'Old Tag' tag2 tag3
. .RE
If there is active time tracking, you can omit the ID when you want to remove tags from the current open interval: If there is active time tracking, you can omit the ID when you want to remove tags from the current open interval:
. .RS
$ timew start foo bar $ timew start foo bar
$ timew untag bar .br
. $ timew untag bar
.RE
This results in the current interval having tag 'foo' but not 'bar'. This results in the current interval having tag 'foo' but not 'bar'.
. .
.SH "SEE ALSO" .SH "SEE ALSO"