feat: denote link completion
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user