Giter Site home page Giter Site logo

fat-todoist's Introduction

fat-todoist npm version Snyk Vulnerabilities for GitHub Repo npm license Integrates with Todoist

About

fat-todoist is a simple CLI utility which recursively adds local Folders-As-Tasks in Todoist. Can optionally also add files as tasks with the --files flag.

fat-todoist

Preparation

  • For one, you obviously need a Todoist account.
  • You need your Todoist API key, you will find it near the bottom of this page.

Installation

//  install globally
npm install -g fat-todoist

//  use in any folder with the --api token flag
fat-todoist --api 'xxxxxxxxxxxx'

//  or, you can alternatively export the token to process.env & just run `fat-todoist` cmd
export TODOIST_API_KEY='xxxxxxxxxxxx'

//  you could also hardcode your token as TODOIST_API_KEY in './lib/fat-todoist.js' 
//  (might want to `npm rm -g` the package & re-install it)
let TODOIST_API_KEY = process.env.TODOIST_API_KEY || 'xxxxxxxxxxxx'

Good-to-know

  • By design, the current folder's name is used as the name of the project in Todoist. This cannot be changed.
  • By default, the parent project is 'Self-Improvement', but you can specify an alternate via the --parent flag, or have it be an empty string which will create projects directly in Todoist root.
  • Also by default, just the folder/subfolder structure is cloned as tasks inside Todoist, this structure aligns well with chapter/module based projects.
    • An include files flag  ― --files is available in case needed (for example when adding a folder with eBooks to read as tasks in Todoist)
    • Do note that folders with a large number of files will take quite a long time to process, AND also keep in mind that you might hit the API maximums (currently 300 tasks per project). There's not much to do about that!

Usage

fat-todoist in action

$ fat-todoist --help
Usage: fat-todoist.js --parent [Parent Project] --api [API key] --files

Commands:
  fat-todoist.js [opt]  add [F]olders [A]s [T]asks in Todoist

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]
  --parent   Specify the parent project. Default is: Self-Improvement
  --api      Specify your Todoist API token
  --files    Also add [F]iles as tasks

Disclaimer:

This project is not an official Todoist integration. ie: this functionality was missing, so I added it. Magic!✨

Made with JS, node and ❤. Todoist is just awesome.

fat-todoist's People

Contributors

dan-dm avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.