Add more vimwiki mappings
- Ones for working with tags - One for finding incomplete tasks
This commit is contained in:
parent
abcaef846e
commit
3ca0930d08
1 changed files with 11 additions and 0 deletions
11
mapping.vim
11
mapping.vim
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue