removed todo: done

This commit is contained in:
2026-02-23 13:26:11 +01:00
parent ac75a8c679
commit d4ad71543d

View File

@@ -10,7 +10,6 @@ function denote#meta#fileFromNoteId(noteId)
" (A) First, we get all files that contain the note id as substring. " (A) First, we get all files that contain the note id as substring.
" (B) Then we ensure that the note id is followed by another field or by the " (B) Then we ensure that the note id is followed by another field or by the
" file extension. " file extension.
" TODO: Fix the following (now, we have full paths!)
let files = glob(t:denote_directory .. "*" .. a:noteId .. "*", 0, v:true) let files = glob(t:denote_directory .. "*" .. a:noteId .. "*", 0, v:true)
\ ->filter('v:val->split("/")[-1] =~ "' .. a:noteId .. '\\(==\\|--\\|__\\|\\.\\)"') \ ->filter('v:val->split("/")[-1] =~ "' .. a:noteId .. '\\(==\\|--\\|__\\|\\.\\)"')
\ ->filter('v:val->split("/")[-1] =~ "^' .. a:noteId .. '\\|@@' .. a:noteId .. '"') \ ->filter('v:val->split("/")[-1] =~ "^' .. a:noteId .. '\\|@@' .. a:noteId .. '"')