( notes: readonly NoteMeta[], settings: VaultSettings | null | undefined, kind: DateNoteInfo['kind'], title: string )
| 1194 | } |
| 1195 | |
| 1196 | export function findDateNoteByTitle( |
| 1197 | notes: readonly NoteMeta[], |
| 1198 | settings: VaultSettings | null | undefined, |
| 1199 | kind: DateNoteInfo['kind'], |
| 1200 | title: string |
| 1201 | ): NoteMeta | null { |
| 1202 | for (const note of notes) { |
| 1203 | if (note.title !== title) continue |
| 1204 | const info = classifyDateNote(note, settings) |
| 1205 | if (info?.kind === kind) return note |
| 1206 | } |
| 1207 | return null |
| 1208 | } |
| 1209 | |
| 1210 | // Match a path's top segment to a system folder case-insensitively. On |
| 1211 | // case-insensitive filesystems (macOS/Windows) the inbox folder can be stored |
nothing calls this directly
no test coverage detected