aapis / evertils

Generate Evernote notes from YML files
1 stars 0 forks source link

Implement log-group and log-grep #58

Closed aapis closed 4 years ago

aapis commented 4 years ago

Search for text in your daily log using log-grep, and filter items using log-group. Both are non-destructive (do not modify data in the store).

Given a daily log like the following...

* 08:10 - 1452 - started coding the form
* 08:15 - 1452 - finished adding the fields
* 08:25 - 1452 - started styling
* 12:00 - 1452 - finished styling
* 12:01 - 00 - lunch
* 01:00 - 2222 - working on oauth implementation
* 02:00 - 2222 - finished oauth
$ evertils log grep 1452
4 rows matched query {1452}
* 08:10 - 1452 - started coding the form
* 08:15 - 1452 - finished adding the fields
* 08:25 - 1452 - started styling
* 12:00 - 1452 - finished styling
$ evertils log group
- 1452 - 4 occurrences
* 08:10 - 1452 - started coding the form
* 08:15 - 1452 - finished adding the fields
* 08:25 - 1452 - started styling
* 12:00 - 1452 - finished styling
- 2222 - 2 occurrences
* 01:00 - 2222 - working on oauth implementation
* 02:00 - 2222 - finished oauth
- 00 - 1 occurrences
* 12:01 - 00 - lunch

I use this to copy-paste to time tracking and other internal progress tracking tools. Good for personal audits and goal setting.