Archive old days or support multiple days #6

Open
opened 2020-05-19 17:01:45 +02:00 by FichteFoll · 1 comment
Contributor

Currently, I have a shell script that moves a day's tracc_time.json file to a subfolder keyed by the date, but that process is error-prone. There could be a way to automate this process or make tracc aware of days in general, considering that time-tracking is explicitly performed by day.

#!/usr/bin/env bash

date=${1:-$(date -Idate)}
echo "moving to $date"
mkdir archive/$date
mv tracc_* archive/$date
Currently, I have a shell script that moves a day's `tracc_time.json` file to a subfolder keyed by the date, but that process is error-prone. There could be a way to automate this process or make tracc aware of days in general, considering that time-tracking is explicitly performed by day. ``` sh #!/usr/bin/env bash date=${1:-$(date -Idate)} echo "moving to $date" mkdir archive/$date mv tracc_* archive/$date ```
Author
Contributor

My idea is to show the currently active day and have key bindings to switch between those (maybe also a launch arg).

My idea is to show the currently active day and have key bindings to switch between those (maybe also a launch arg).
FichteFoll changed title from Archive old days to Archive old days or support multiple days 2021-08-13 12:10:05 +02:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kageru/tracc#6
No description provided.