MCPcopy
hub / github.com/foambubble/foam / IFoamConfig

Interface IFoamConfig

packages/foam-core/src/config.ts:1–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1export interface IFoamConfig {
2 // Files
3 getFilesInclude(): string[];
4 getFilesExclude(): string[];
5 getDefaultNoteExtension(): string;
6 getNotesExtensions(): string[];
7 getAttachmentExtensions(): string[];
8 getNewNotePath(): 'root' | 'currentDir';
9
10 // Templates
11 getTemplatesFolder(): string;
12
13 // Daily notes
14 getDailyNoteDirectory(): string | null;
15 getDailyNoteFilenameFormat(): string;
16 getDailyNoteFileExtension(): string;
17 getDailyNoteTitleFormat(): string | null;
18 getOpenDailyNoteOnStartup(): boolean;
19
20 // Date
21 getDateLocale(): string;
22 getDateSnippetsAfterCompletion(): 'noop' | 'createNote' | 'navigateToNote';
23
24 // Links
25 getLinksDirectoryMode(): 'resolve' | 'disabled';
26 getLinksSyncEnable(): boolean;
27 getLinksHoverEnable(): boolean;
28 getEditLinkReferenceDefinitions(): 'withExtensions' | 'withoutExtensions' | 'off';
29
30 // Completion
31 getCompletionLabel(): 'path' | 'title' | 'identifier';
32 getCompletionUseAlias(): 'never' | 'whenPathDiffersFromTitle';
33 getCompletionLinkFormat(): 'wikilink' | 'link';
34
35 // Preview
36 getPreviewEmbedNoteType(): 'full-inline' | 'full-card' | 'content-inline' | 'content-card';
37
38 // Graph
39 getGraphOnStartup(): boolean;
40 getGraphNavigateToPreview(): boolean;
41 getGraphTitleMaxLength(): number;
42 getGraphStyle(): object;
43
44 // Languages
45 getSupportedLanguages(): string[];
46}
47
48/**
49 * A partial config source — represents one layer of a cascade.

Callers 60

activateFunction · 0.65
config.spec.tsFile · 0.65
activateFunction · 0.65
activateFunction · 0.65
config.test.tsFile · 0.65
getFilesIncludeMethod · 0.65
config.test.tsFile · 0.65
activateFunction · 0.65
config.test.tsFile · 0.65
getFilesExcludeMethod · 0.65

Implementers 4

VsCodeFoamConfigpackages/foam-vscode/src/vscode/config
StaticFoamConfigpackages/foam-cli/src/support/config.t
DefaultFoamConfigpackages/foam-core/src/config.ts
Configpackages/foam-core/src/config.ts

Calls

no outgoing calls

Tested by

no test coverage detected