Code Monkey home page Code Monkey logo

nvim-todoist.lua's Introduction

NOTE: This was more of an idea I put into code because todoist.nvim wasn't working for me. But, I don't really plan to maintain it, and it's not really all that usable anyways, so if you're looking for a Todoist plugin, just use https://github.com/romgrk/todoist.nvim instead.

nvim-todoist.lua - Todoist plugin for Neovim

Setup + Installation

Requirements

Use your plugin manager of choice, like vim-plug or packer.nvim. Here's an example with vim-plug:

" Dependency
Plug 'nvim-lua/plenary.nvim'

Plug 'smolck/nvim-todoist.lua'

Just make sure that no matter what package manager you use, you install plenary.nvim along with this plugin.

After you've done that, make sure to add this to your init.vim (after the Plug lines):

lua << EOF
require'nvim-todoist'.neovim_stuff.use_defaults()
EOF

If you don't do that, none of this plugin's functions, like :Todoist, will work!

API Token

First, get your Todoist API token from https://todoist.com/prefs/integrations. After that, set the $TODOIST_API_KEY environmental variable to that token.

Usage

Call :Todoist from within Neovim, and you'll be greeted by a floating window with your Inbox tasks. Alternatively, you can call :Todoist <project name>, e.g. :Todoist Welcome, to view tasks from a specific project.

Mappings

Command Default Mapping Result
:TodoistMoveCursorDown/:TodoistMoveCursorUp j/k Moves up and down between tasks
:TodoistToggleTask x Closes/opens task under cursor
:TodoistDeleteTask dd Deletes task under cursor
:TodoistRefresh r Fetches latest tasks/projects & updates todoist buffer
:TodoistCreateTask c Creates a new task after asking for content & date

Contributing

Just create an issue or open a PR! Contributions are welcome and appreciated ;)

nvim-todoist.lua's People

Contributors

jsosulski avatar smolck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nvim-todoist.lua's Issues

Todoist retired providing API

I tried to use this plugin, but it shows an error message below.
...ker/start/nvim-todoist.lua/lua/nvim-todoist/lib/json.lua:185: unexpected character 'G' at line 1 col 1

and the json returend by todoist in api.lua (line 16) is dumped like below.
{ [1] = Gone,}

Todoist said they retired providing API.
So, this plugin does not work anymore, right?

Name ambiguity

Hey :)

Just wanted to highlight that one of my projects is already using the name todoist.nvim. If you want to publicize this project, might I ask that you pick a different name to ensure that both are differentiable?

Thanks

nvim-todoist/api.lua:3: module 'rapidjson' not found

There's a dependency on rapidjson, so I think it should be added to readme.

Edit: I'm not sure how to install it. I installed luarocks from aur and installed it with that, but it's not working. Probably mismatching version. Any help is appreciated.

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.