Parser and scheduler for syncing a markdown(ish) todo list with google calendar.
Project description
Reschedule
Goal
I want to keep track of all my todos in a plain text file but also automatically schedule my todos on my google calendar. When I write my todos in a todo list I often fail to allocate time for them in my calendar. When I look at my week I feel like I have tons of free time but in reality I have a full day of work to do. As an example this is what my week looks like without todos vs. with todos (in orange).
This program automatically parses todos from a markdown file and schedules them on a google calendar.
- [ ] task name est:10m due:2020-03-20 id:1f2a4b
Installation
Using python >3.6
pip install reschedule
Now you can reschedule your todos by running reschedule from the command line.
The first time you run reschedule you'll be prompted to authorize with google and a config file will be created for you at ~/.cache/reschedule/config.json.
Configuration
{
"work_start_time": "08:00",
"work_end_time": "18:00",
"task_file_path": "~/todo.md",
"task_calendar_name": "Reschedule Tasks",
"chunk_size": 15,
"default_est": "30m"
}
work_start_time: the earliest a task will be scheduled to start in%H:%Mformat. (i.e. military time such as 08:30 or 23:00)work_end_time: the latest a task will be scheduled to end in%H:%Mformat. (i.e. military time such as 08:30 or 23:00)task_file_path: the absolute path to your markdown file of taskstask_calendar_name: the name of the google calendar this program will create to store your tasks. Must be unique from an existing calendar.chunk_size: the minimum length of an event. 15 is a good default to keep your day from becoming too fragmented.default_est: the default time estimate for a task
Task File Format
Task are written using markdown task-list format. To create a task use a new line with - [ ]. To mark a task as complete use - [x]. Metadata is attached to tasks using a key:value syntax. The key and the value cannot contain spaces or :. I call an instance of a key:value pair a tag, for instance an id tag is a key:value pair with a key of id. Every task needs a unique id tag for example id:1aab7d. Tasks can have an est tag which contains a time estimate written as 30m or 1h for 30 minutes or 1 hour respectively. Any number followed by m or h is acceptable as a value for the est tag. Finally tasks can have a due tag which contains a due-date formatted as YYYY-MM-dd.
<!-- A task with an estimate of 30 minutes, due March 6, 2020, with id 16cfe6 -->
- [ ] What you want to do est:30m due:2020-03-06 id:16cfe6
VSCode Snippets
I use the following user defined VSCode Markdown Snippets to create my tasks.
// add a new task
"task": {
"prefix": "//task",
"body": [
"- [ ] ${1:What do you want to do?} est:${2:30m} id:$RANDOM_HEX"
]
},
// add a due date to a task
"due": {
"prefix": "//due",
"body": "due:${1:$CURRENT_YEAR}-${2:$CURRENT_MONTH}-${3:$CURRENT_DATE}"
},
// create a random variable
"random": {
"prefix": "//random",
"body": "$RANDOM_HEX"
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file reschedule-0.1.3.tar.gz.
File metadata
- Download URL: reschedule-0.1.3.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.6.10 Darwin/18.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
905b7dbad3d67f11eeb8859a05fd590584cd246cf32daa95f46c89e7904be858
|
|
| MD5 |
7e6cc66d4dea36e305eec2b4399d343b
|
|
| BLAKE2b-256 |
4a8263375d30f81e872a47595bc59af9bb3f49f28611cba25bf36f92f19e7ac9
|
File details
Details for the file reschedule-0.1.3-py3-none-any.whl.
File metadata
- Download URL: reschedule-0.1.3-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.6.10 Darwin/18.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
624f0331e41b70fca9d8c70e2247ebe3543192c3d9beeb22c3e025dbbcd7d832
|
|
| MD5 |
f56d6d1dbb1bc786fe6997947f8b77c6
|
|
| BLAKE2b-256 |
b2be63a924a29fd32a4fc0f73ea5ec0b8ede7fce74bbd535e617987cc59e4ebb
|