Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.8 KB

README.md

File metadata and controls

60 lines (41 loc) · 1.8 KB

notion-command-line-todo

Add something to your notion TODO list from the command line

A TODO page on notion and the terminal with the TODO command on it

Seting up the notion page

Notion share modal

  • Copy the page ID:

Example image of the page ID

Running using docker

  • Create the image and tag it:
> docker build . -t notion 
  • Run the command, make sure you have the integration token and the page ID
> docker run -it -v $(pwd):/usr/src/app notion python pytodo.py -t INTEGRATION_TOKEN -p PAGE_ID Buy almond milk
  • Create an alias, (the command above is a little ugly, isn't it? So I'd rather create an alias on the bashrc/zshrc/equivalent):
...
alias todo="docker run -it -v /Your-Directory/notion-command-line-todo:/usr/src/app notion python pytodo.py -t INTEGRATION_TOKEN -p PAGE_ID"

Then you can just do this:

> todo buy almond milk

Available commands

Add a new entry: (Default)

> todo buy brocoli 

List things on the notion page:

You will see all the TODO blocks on your notion page

> todo -l
> [X] Take out trash
  [] Buy chocolate
  [] Buy broccoli
  [] Run a 5K marathon