rename notes/and files

This commit is contained in:
2026-02-27 21:57:19 +01:00
parent 553cf41c96
commit 55bbeecb0a
6 changed files with 121 additions and 25 deletions

View File

@@ -86,3 +86,18 @@ function denote#loclist#reload()
execute ':lwindow'
endif
endfunction
" Jump to window this location list belongs to
function denote#loclist#jumptowindow()
let l:locprop = getloclist(0, {'filewinid': 0})
if type(l:locprop) != v:t_dict || !has_key(l:locprop, 'filewinid')
return
endif
let l:winid = l:locprop['filewinid']
if l:winid == 0
exe 'new'
exe 'wincmd K'
else
call win_gotoid(l:winid)
endif
endfunction