feat: denote link completion

This commit is contained in:
2026-02-19 15:56:08 +01:00
parent 00af1c53b9
commit 83ea4f2bcf
3 changed files with 63 additions and 2 deletions

View File

@@ -23,10 +23,9 @@ function denote#meta#noteIdFromFile(filename)
\ ?? v:false
endfunction
" Return the note title from the filename. On failure, v:false is returned.
" Return the note title from the filename.
function denote#meta#noteTitleFromFile(filename)
return a:filename->matchstr("--\\zs.\\{-\\}\\ze\\(==\\|@@\\|__\\|\\..\\)")->substitute("-", " ", "g")
\ ?? v:false
endfunction
" Return the note tags from the filename as a list.