https://github.com/yanick/nvim-taskwarrior
use neovim as a UI for taskwarrior
https://github.com/yanick/nvim-taskwarrior
Last synced: 4 months ago
JSON representation
use neovim as a UI for taskwarrior
- Host: GitHub
- URL: https://github.com/yanick/nvim-taskwarrior
- Owner: yanick
- Created: 2018-10-06T16:50:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-11T15:12:00.000Z (over 6 years ago)
- Last Synced: 2025-01-31T07:40:35.402Z (4 months ago)
- Language: JavaScript
- Size: 76.2 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nvim-taskwarrior - Neovim UI for Taskwarrior
[](https://asciinema.org/a/NHDYcXrhwi0t8dLCkqv8IhM2W)
## Install
This plugin requires the plugin
[dhruvasagar/vim-table-mode](https://github.com/dhruvasagar/vim-table-mode)
to be installed.### Install using [vim-plug](https://github.com/junegunn/vim-plug)
In `~/.config/nvim/init.vim`, add:
call plug#begin('~/.config/nvim/plugged')
Plug 'dhruvasagar/vim-table-mode', {
\ 'on': [ 'TableModeEnable' ]
\ }function! NvimTwUpdate(args)
!npm install
" npm could also be yarn or pnpm
UpdateRemotePlugins
endfunctionPlug 'yanick/nvim-taskwarrior', { 'do': function('NvimTwUpdate') }
call plug#end()
Then, still within neovim, unleash `plugged`:
:PlugInstall
That (hopefully) is it. Enjoy!
## How to use
To enable the mappings and syntaxt highlights, either open
a `.tw` file, or do `:set filetype=taskwarrior`.## Functions
TaskShow( [ filters ] )
TaskDone()
TaskDelete()TaskAppend()
TaskInfo()
## Mappings
defined in ``./ftplugin/taskwarrior.vim`.
\L is the leader key.
Most mappings work in both normal and visual mode.
| map | command |
| --- | --- |
| \L ll | TaskShow('+READY')|
| \L lf | TaskShow('+READY +focus')|
| \L lq | TaskShow()|
| ||
| \L d | TaskDone()|
| \L D | TaskDelete()|
| ||
| \L a | TaskAppend()|
| \L i | TaskInfo()|
| ||
| \L 1 | TaskAppend('priority:L')|
| \L 2 | TaskAppend('priority:M')|
| \L 3 | TaskAppend('priority:H')|
| \L 0 | TaskAppend('priority:')|## Debugging
$ export NVIM_NODE_LOG_FILE /tmp/nvim-tw.log
$ nvim foo.tw