visual keys

This commit is contained in:
2026-02-28 15:24:22 +01:00
parent 1afd45b91a
commit 0f0a86d1f9
2 changed files with 5 additions and 2 deletions

View File

@@ -49,7 +49,9 @@ function denote#ft#qf()
nnoremap <buffer> C :DenoteSetTitle
nnoremap <buffer> + :DenoteTagAdd
nnoremap <buffer> - :DenoteTagRm
nnoremap <buffer> dd :DenoteDelete<CR>
" TODO: Add visual maps for line ranges +/-/delete
nnoremap <buffer> dd :DenoteDelete<CR>r
xnoremap <buffer> + :DenoteTagAdd
xnoremap <buffer> - :DenoteTagRm
xnoremap <buffer> d :DenoteDelete<CR>
endif
endfunction

View File

@@ -81,6 +81,7 @@ endfunction
function denote#loclist#reload()
let l:context = getloclist(0, {'context': 1})['context']
if has_key(l:context, 'denote') && has_key(l:context, 'gfun')
call denote#loclist#jumptowindow()
exe 'lclose'
call l:context['gfun']()
exe 'lwindow'