gito
(Easy TODO`s)
Command line python library to view TODO`s from all the files under a directory with deadline displays and wunderlist uploads.
Installing Gito is Simple, Here we go..
Installing pip
$ wget https://bootstrap.pypa.io/get-pip.py
$ python get-pip.py
Installing Gito
$ pip install gito
Configuration
Configuration Location - ~/.gito
(or) C:\\Users\\user\\.gito
Initialize Configuration
The configuration file can be created using gito cli.
$ gito --initconfig
Configuration usage
wl_access_token: YOUR_WUNDERLIST_ACCESS_TOKEN
Note: Please Obtain the access token for your wunderlist account by visiting
wloauth
Usage Example
gito cli
$ gito
usage: gito [-h] [--wsync] [--display] [--initconfig]
Gito - Command Line Utility to Print TODO`s in source files & upload to
wunderlist
optional arguments:
-h, --help show this help message and exit
--wsync Sync the TODO`s to wunderlist
--display Display all the TODO`s
--initconfig Init Gito Configuration file under home
Displaying todos (example)
$ gito --display
TODO`s:
/Users/xyz/project/main.py
1. [NO-DUE] Plan for new functionality
2. [NO-DUE] Refactor the code
/Users/xyz/project/test.py
1. [NO-DUE] Test xyz functionality
Uploading todos to wunderlist (example)
$ gito --display
Uploading tasks to Wunderlist:
Syncing task - Plan for new functionality
[DONE]
Syncing task - Refactor the code
[DONE]
Text xyz functionality
{DONE}
Gito features & Rules
TODO Format
// TODO: Your todo here
(or)
# TODO: Your todo Here
Note: Only single line comments are supported.
Due Date
Gito allows mentioning due dates in todo which will be identified and parsed. These dates are used to display the due status and also for setting as due date in wunderlist.
Date Format
// TODO: 05-06-2020
(or)
# TODO: 05-06-2020
Due status
-
[OVERDUE]
- Behind the date -
[ONDUE]
- On the date -
[NORMAL]
- Having more than5
days -
[CRITICAL]
- Having less than5
days
Wunderlist upload
Inorder to upload to wunderlist, the access token must be specified in the configuration file (see Configuration
).
On upload a list with the directory name will created and every todo will be created as a task in the list. Due status are excluded in wunderlist upload.