Add more vimwiki mappings

- Ones for working with tags
- One for finding incomplete tasks
This commit is contained in:
Thomas Gideon 2024-04-10 11:40:19 -04:00
parent abcaef846e
commit 3ca0930d08

View file

@ -35,3 +35,14 @@ nnoremap <leader>xd <cmd>TroubleToggle document_diagnostics<cr>
nnoremap <leader>xq <cmd>TroubleToggle quickfix<cr> nnoremap <leader>xq <cmd>TroubleToggle quickfix<cr>
nnoremap <leader>xl <cmd>TroubleToggle loclist<cr> nnoremap <leader>xl <cmd>TroubleToggle loclist<cr>
nnoremap gR <cmd>TroubleToggle lsp_references<cr> nnoremap gR <cmd>TroubleToggle lsp_references<cr>
nnoremap <leader>t <cmd>e ~/Documents/Wiki/tags.md<cr>
nnoremap <leader>tr <cmd>VimwikiRebuildTags<cr>
nnoremap <leader>tg <cmd>VimwikiGenerateTagLinks<cr>
function! VimwikiFindAllIncompleteTasks()
lvimgrep /- \[ \]/ *
lopen
endfunction
nmap <Leader>wa :call VimwikiFindAllIncompleteTasks()<CR>