summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Chausse <BCPianist@users.noreply.github.com>2018-11-27 18:37:12 -0500
committerBenjamin Chausse <BCPianist@users.noreply.github.com>2018-11-27 18:37:12 -0500
commit27d7c214271a2d0e806d0c7ba267bd0799f56df7 (patch)
tree63f21bafaa283995f0fd92c627c1eab9831b97e0
parent4ff5920937ad46913e1fdd9c565252c803ebd3c0 (diff)
To be undoed
-rw-r--r--README.md9
-rw-r--r--inbox_for_todoist.widget/run.sh2
-rw-r--r--inbox_for_todoist.widget/todoistinbox.py2
3 files changed, 6 insertions, 7 deletions
diff --git a/README.md b/README.md
index 3991aad..0ca0c07 100644
--- a/README.md
+++ b/README.md
@@ -26,12 +26,12 @@ Download and install the latest version of python 3 from this website :
https://www.python.org/downloads/mac-osx/
Using homebrew (Recommended)
-•
+•
First install homebrew (if not already installed):
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install )"
-•
+•
Run the following command in a terminal window:
brew install python
@@ -46,7 +46,7 @@ pip3 install todoist-python
Installation
-Clone this repository to your Übersicht folder: ~/Library/Application Support/Übersicht/widgets/
+Clone this repository to your Übersicht folder: ~/Library/Application Support/Übersicht/widgets/
Setting up your own Todoist Token
@@ -67,7 +67,7 @@ Priority Color Coding
You can change the colors of tasks inside of the .coffee file. By default, tasks are colored the same way they are in the todoist mac app in dark. The following line to edit are:
-To edit the color of tasks labelled | priority1 | edit the | rgba(r, g, b, a) | on line | 21 --|---|---|---|---|-- To edit the color of tasks labelled | priority2 | edit the | rgba(r, g, b, a) | on line | 23 To edit the color of tasks labelled | priority3 | edit the | rgba(r, g, b, a) | on line | 25 To edit the color of tasks labelled | priority4 | edit the | rgba(r, g, b, a) | on line | 27
+To edit the color of tasks labelled | priority1 | edit the | rgba(r, g, b, a) | on line | 21 --|---|---|---|---|-- To edit the color of tasks labelled | priority2 | edit the | rgba(r, g, b, a) | on line | 23 To edit the color of tasks labelled | priority3 | edit the | rgba(r, g, b, a) | on line | 25 To edit the color of tasks labelled | priority4 | edit the | rgba(r, g, b, a) | on line | 27
The default color for the widget is rgba(#F2F2F2, 1.0) .
@@ -87,4 +87,3 @@ Possible Eventual Improvements
• [ ] Todoist Markdown Support
• [ ] Indent embedded subtasks
-
diff --git a/inbox_for_todoist.widget/run.sh b/inbox_for_todoist.widget/run.sh
index 368b182..fc7a84b 100644
--- a/inbox_for_todoist.widget/run.sh
+++ b/inbox_for_todoist.widget/run.sh
@@ -1,2 +1,2 @@
export LANG=en_CA.UTF-8;
-/usr/local/bin/python3 todoistinbox.py
+python3 todoistinbox.py
diff --git a/inbox_for_todoist.widget/todoistinbox.py b/inbox_for_todoist.widget/todoistinbox.py
index 45a6f4e..86121fb 100644
--- a/inbox_for_todoist.widget/todoistinbox.py
+++ b/inbox_for_todoist.widget/todoistinbox.py
@@ -2,7 +2,6 @@
import online
import pickle
import os
-from todoist.api import TodoistAPI
def main():
with open('todoist_API.txt') as f: # Opens the API key file
@@ -28,6 +27,7 @@ def main():
elif online.main() == True:
+ from todoist.api import TodoistAPI
api = TodoistAPI(token)
api.sync() # initial sync