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

Method getTemplateFiles

src/main.ts:608–618  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

606 }
607
608 public getTemplateFiles(): TFile[] {
609 const folders = normalizeTemplateFolderPaths(
610 this.settings.templateFolderPaths,
611 );
612 // Only files the engine can actually resolve are useful suggestions; an
613 // empty folder list means "suggest every template file in the vault".
614 return this.app.vault
615 .getFiles()
616 .filter((file) => hasTemplateExtension(file.path))
617 .filter((file) => isPathWithinTemplateFolders(file.path, folders));
618 }
619
620 private announceUpdate() {
621 // `isFeatureUpdate`: the "major" announce tier promises "new features, breaking

Callers 3

runTemplateFromFolderFunction · 0.80
pickTemplateFunction · 0.80
constructorMethod · 0.80

Calls 3

hasTemplateExtensionFunction · 0.85

Tested by

no test coverage detected