MCPcopy Create free account
hub / github.com/chhoumann/quickadd / firstLevelHeading

Function firstLevelHeading

src/utils/fileSyntax.ts:273–276  ·  view source on GitHub ↗
(metadata?: CachedMetadata | null)

Source from the content-addressed store, hash-verified

271}
272
273function firstLevelHeading(metadata?: CachedMetadata | null): string | undefined {
274 const heading = metadata?.headings?.find((entry) => entry.level === 1);
275 return scalarTitleValue(heading?.heading);
276}
277
278function parentLabel(file: TFile): string {
279 const parent = file.parent?.path;

Callers 1

buildFileDisplayInfosFunction · 0.85

Calls 1

scalarTitleValueFunction · 0.85

Tested by

no test coverage detected