MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / resolveBasesTaskLinkText

Function resolveBasesTaskLinkText

src/bases/basesTaskCopyActions.ts:83–89  ·  view source on GitHub ↗
(app: App, path: string)

Source from the content-addressed store, hash-verified

81}
82
83export function resolveBasesTaskLinkText(app: App, path: string): string {
84 const file = app.vault.getAbstractFileByPath(path);
85 if (file instanceof TFile) {
86 return app.metadataCache.fileToLinktext(file, "");
87 }
88 return path;
89}

Callers 2

copyCurrentViewTasksFunction · 0.90

Calls 2

getAbstractFileByPathMethod · 0.80
fileToLinktextMethod · 0.80

Tested by

no test coverage detected