mocoapp-plugin is a Neovim plugin to interact with the Mocoapp API directly from your editor. It allows you to select projects and tasks, log time, and more, without leaving your development environment.
- Neovim (0.5 or higher)
curlfor API requests- dressing: Enhanced input UI
- notify: Custom, more appealing, notifications
Plug 'pfinkbeiner/mocoapp-plugin'
use {'pfinkbeiner/mocoapp-plugin'}
Clone this repository and copy the files to your Neovim plugin directory.
Set your Mocoapp API token and domain in your init.vim or init.lua:
let g:mocoapp_api_token = "your-api-token"
let g:mocoapp_api_domain = "your-domain"or in Lua:
vim.g.mocoapp_api_token = "your-api-token"
vim.g.mocoapp_api_domain = "your-domain"Run :Moco to start the process. It will:
- Fetch the list of projects and tasks.
- Prompt you to select a project and task.
- Prompt you to enter a date.
- Prompt you to enter the time spent on the task.
- Prompt you to enter a description for the task.
- Save the time entry.
The plugin is written in Lua and uses Neovim's native Lua API for all operations. Keep in mind that this is also my very first Lua project, at all. So, there are most likely some bugs. ;-)