You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a large commit that adds the following:
1. Syntax: `watson stop --notes "some additional information"`.
2. Print only non-empty notes in log.
3. Always pass id to `new_frame` so that the length of array with/without
notes doesn't cause ambiguity.
4. Print a warning message and the existing note if overwriting a note.
5. Print notes in report.
Co-authored-by: Tristan Pratt <[email protected]>
Co-authored-by: Rohitt Vashishtha <[email protected]>
If `value` is not provided, the content of the `key` is displayed. Else,
145
-
the given `value` is set.
144
+
If value is not provided, the content of the key is displayed. Else,
145
+
the given value is set.
146
146
147
147
You can edit the config file with an editor with the `--edit` option.
148
148
@@ -172,12 +172,12 @@ You can specify the frame to edit by its position or by its frame id.
172
172
For example, to edit the second-to-last frame, pass `-2` as the frame
173
173
index. You can get the id of a frame with the `watson log` command.
174
174
175
-
If no id or index is given, the frame defaults to the current frame (or the
176
-
last recorded frame, if no project is currently running).
175
+
If no id or index is given, the frame defaults to the current frame or the
176
+
last recorded frame, if no project is currently running.
177
177
178
178
The editor used is determined by the `VISUAL` or `EDITOR` environment
179
179
variables (in that order) and defaults to `notepad` on Windows systems and
180
-
to `vim`, `nano`, or `vi` (first one found) on all other systems.
180
+
to `vim`, `nano` or `vi` (first one found) on all other systems.
181
181
182
182
### Options
183
183
@@ -237,22 +237,21 @@ can be controlled with the `--from` and `--to` arguments. The dates
237
237
must have the format `YEAR-MONTH-DAY`, like: `2014-05-19`.
238
238
239
239
You can also use special shortcut options for easier timespan control:
240
-
`--day` sets the log timespan to the current day (beginning at `00:00h`)
241
-
and `--year`, `--month` and `--week` to the current year, month, or week,
240
+
`--day` sets the log timespan to the current day (beginning at 00:00h)
241
+
and `--year`, `--month` and `--week` to the current year, month or week
242
242
respectively.
243
243
The shortcut `--luna` sets the timespan to the current moon cycle with
244
244
the last full moon marking the start of the cycle.
245
245
246
246
If you are outputting to the terminal, you can selectively enable a pager
247
247
through the `--pager` option.
248
248
249
-
You can limit the log to a project or a tag using the `--project`,
250
-
`--tag`, `--ignore-project` and `--ignore-tag` options. They can be
251
-
specified several times each to add or ignore multiple projects or
252
-
tags in the log.
249
+
You can limit the log to a project or a tag using the `--project` and
250
+
`--tag` options. They can be specified several times each to add multiple
251
+
projects or tags to the log.
253
252
254
253
You can change the output format from *plain text* to *JSON* using the
255
-
`--json` option or to *CSV* using the `--csv` option. Only one of these
254
+
`--json` option or to *CSV* using the `--csv` option. Only one of these
256
255
two options can be used at once.
257
256
258
257
Example:
@@ -297,9 +296,8 @@ Example:
297
296
Flag | Help
298
297
-----|-----
299
298
`-c, --current / -C, --no-current` | (Don't) include currently running frame in output.
300
-
`-r, --reverse / -R, --no-reverse` | (Don't) reverse the order of the days in output.
301
-
`-f, --from DATETIME` | The date from when the log should start. Defaults to seven days ago.
302
-
`-t, --to DATETIME` | The date at which the log should stop (inclusive). Defaults to tomorrow.
299
+
`-f, --from DATE` | The date from when the log should start. Defaults to seven days ago.
300
+
`-t, --to DATE` | The date at which the log should stop (inclusive). Defaults to tomorrow.
303
301
`-y, --year` | Reports activity for the current year.
304
302
`-m, --month` | Reports activity for the current month.
305
303
`-l, --luna` | Reports activity for the current moon cycle.
@@ -308,8 +306,6 @@ Flag | Help
308
306
`-a, --all` | Reports all activities.
309
307
`-p, --project TEXT` | Logs activity only for the given project. You can add other projects by using this option several times.
310
308
`-T, --tag TEXT` | Logs activity only for frames containing the given tag. You can add several tags by using this option multiple times
311
-
`--ignore-project TEXT` | Logs activity for all projects but the given ones. You can ignore several projects by using the option multiple times. Any given project will be ignored
312
-
`--ignore-tag TEXT` | Logs activity for all tags but the given ones. You can ignore several tags by using the option multiple times. Any given tag will be ignored
313
309
`-j, --json` | Format output in JSON instead of plain text
314
310
`-s, --csv` | Format output in CSV instead of plain text
315
311
`-g, --pager / -G, --no-pager` | (Don't) view output through a pager.
@@ -460,8 +456,8 @@ can be controlled with the `--from` and `--to` arguments. The dates
460
456
must have the format `YEAR-MONTH-DAY`, like: `2014-05-19`.
461
457
462
458
You can also use special shortcut options for easier timespan control:
463
-
`--day` sets the report timespan to the current day (beginning at `00:00h`)
464
-
and `--year`, `--month` and `--week` to the current year, month, or week,
459
+
`--day` sets the report timespan to the current day (beginning at 00:00h)
460
+
and `--year`, `--month` and `--week` to the current year, month or week
465
461
respectively.
466
462
The shortcut `--luna` sets the timespan to the current moon cycle with
467
463
the last full moon marking the start of the cycle.
@@ -559,8 +555,8 @@ Example:
559
555
Flag | Help
560
556
-----|-----
561
557
`-c, --current / -C, --no-current` | (Don't) include currently running frame in report.
562
-
`-f, --from DATETIME` | The date from when the report should start. Defaults to seven days ago.
563
-
`-t, --to DATETIME` | The date at which the report should stop (inclusive). Defaults to tomorrow.
558
+
`-f, --from DATE` | The date from when the report should start. Defaults to seven days ago.
559
+
`-t, --to DATE` | The date at which the report should stop (inclusive). Defaults to tomorrow.
564
560
`-y, --year` | Reports activity for the current year.
565
561
`-m, --month` | Reports activity for the current month.
566
562
`-l, --luna` | Reports activity for the current moon cycle.
@@ -589,9 +585,9 @@ restarted, using the same tags as recorded in that frame. You can specify
589
585
the frame to use with an integer frame index argument or a frame ID. For
590
586
example, to restart the second-to-last frame, pass `-2` as the frame index.
591
587
592
-
Normally, if a project is currently started, Watson will print an error and
588
+
Normally, if a project is currently started, watson will print an error and
593
589
do nothing. If you set the configuration option `options.stop_on_restart`
594
-
to a true value (`1`, `on`, `true`, or `yes`), the current project, if any,
590
+
to a true value (`1`, `on`, `true` or `yes`), the current project, if any,
595
591
will be stopped before the new frame is started. You can pass the option
596
592
`-s` or `--stop` resp. `-S` or `--no-stop` to override the default or
597
593
configured behaviour.
@@ -613,7 +609,6 @@ Example:
613
609
614
610
Flag | Help
615
611
-----|-----
616
-
`--at DATETIME` | Start frame at this time. Must be in (YYYY-MM-DDT)?HH:MM(:SS)? format.
Copy file name to clipboardExpand all lines: docs/user-guide/configuration.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Watson configuration and data are stored inside your user's application folder.
8
8
***Windows**: `%appdata%\watson\config`, which usually expands to `C:\Users\<user>\AppData\Roaming\watson\config`
9
9
***Linux**: `~/.config/watson/config`
10
10
11
-
The configuration file is a typical [python configuration (INI) file](https://docs.python.org/3.9/library/configparser.html#supported-ini-file-structure), that looks like:
11
+
The configuration file is a typical [python configuration (INI) file](https://docs.python.org/3.7/library/configparser.html#supported-ini-file-structure), that looks like:
12
12
13
13
```ini
14
14
[Simple Values]
@@ -55,7 +55,7 @@ empty string value here =
55
55
# Did I mention we can indent comments, too?
56
56
```
57
57
58
-
_This example configuration file has been taken from the [official python documentation](https://docs.python.org/3.9/library/configparser.html#supported-ini-file-structure)._
58
+
_This example configuration file has been taken from the [official python documentation](https://docs.python.org/3.7/library/configparser.html#supported-ini-file-structure)._
0 commit comments