mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Docs: Added configuration details
This commit is contained in:
parent
bce6a2766b
commit
ec155683f0
2 changed files with 44 additions and 10 deletions
|
@ -109,8 +109,35 @@ that extends all day today. Similarly 'tomorrow', 'next week' are bounded.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[6.1] Configuration: Storing/accessing settings
|
||||||
|
-----------------------------------------------
|
||||||
|
With a 'config' command, all configuration data will be accessible. The command:
|
||||||
|
|
||||||
|
$ timew config name value
|
||||||
|
|
||||||
|
Will result in an update to the configuration rule:
|
||||||
|
|
||||||
|
define configuration:
|
||||||
|
name value
|
||||||
|
|
||||||
|
Using the '.' character allows the rule to reflect hierarchical configuration
|
||||||
|
data:
|
||||||
|
|
||||||
|
$ timew config one two three four
|
||||||
|
$ timew config one two five six
|
||||||
|
|
||||||
|
Will construct the rule like this:
|
||||||
|
|
||||||
|
define configuration:
|
||||||
|
one:
|
||||||
|
two:
|
||||||
|
three four
|
||||||
|
five six
|
||||||
|
|
||||||
|
The process of converting this rule structure to 'one.two.three four' is called
|
||||||
|
normalizing.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
By using tags, this becomes:
|
By using tags, this becomes:
|
||||||
|
@ -173,8 +200,6 @@ associated metadata:
|
||||||
$ timew define tag "tag1" budget 400 hours total
|
$ timew define tag "tag1" budget 400 hours total
|
||||||
$ timew define tag "tag1" overlap
|
$ timew define tag "tag1" overlap
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
- Need to break all these out into separate sections, where each is discussed in
|
- Need to break all these out into separate sections, where each is discussed in
|
||||||
sufficient detail to then generate user docs and code.
|
sufficient detail to then generate user docs and code.
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,14 @@ defines all exclusions:
|
||||||
define exclusions:
|
define exclusions:
|
||||||
...
|
...
|
||||||
|
|
||||||
|
There is a rule that contains all the general configuration data:
|
||||||
|
|
||||||
|
define configuration:
|
||||||
|
name1 value1
|
||||||
|
group1:
|
||||||
|
group2:
|
||||||
|
name2 value2
|
||||||
|
|
||||||
There are general rules triggered by changes to the data:
|
There are general rules triggered by changes to the data:
|
||||||
|
|
||||||
define rule one:
|
define rule one:
|
||||||
|
@ -85,20 +93,21 @@ Yields a combined:
|
||||||
Possible exclusions include:
|
Possible exclusions include:
|
||||||
|
|
||||||
$ timew define holidays eng-USA
|
$ timew define holidays eng-USA
|
||||||
$ timew define workweek mon-fri
|
$ timew define week mon-fri
|
||||||
$ timew define workday start 8:30am
|
$ timew define day start 8:30am
|
||||||
$ timew define workday end 1730
|
$ timew define day end 1730
|
||||||
$ timew define workday tue end 3pm
|
$ timew define day tue end 3pm
|
||||||
|
|
||||||
Yielding:
|
Yielding:
|
||||||
|
|
||||||
define exclusions:
|
define exclusions:
|
||||||
holidays eng-USA
|
holidays eng-USA
|
||||||
work 2015-11-26
|
work 2015-11-26
|
||||||
workweek mon,tue,wed,thu,fri
|
week mon,tue,wed,thu,fri
|
||||||
workday start 8:30am
|
day:
|
||||||
workday end 1730
|
start 8:30am
|
||||||
workday tue end 3pm
|
end 1730
|
||||||
|
tue end 3pm
|
||||||
|
|
||||||
If you want to track your lunch breaks, then you would make a tag for it, and
|
If you want to track your lunch breaks, then you would make a tag for it, and
|
||||||
track it like any other project. If you do not want to track that time, add an
|
track it like any other project. If you do not want to track that time, add an
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue