Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit b767b28

Browse files
committed
working
1 parent c5c4974 commit b767b28

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/services/FileManagerService.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { Notice, parseYaml, TFile, TFolder } from "obsidian";
77
import { parseFrontmatterFieldsToString, parseInlineFieldsToString } from "parsers/RowDatabaseFieldsToFile";
88
import { LOGGER } from "services/Logger";
99
import { DataviewService } from "services/DataviewService";
10+
import { SourceDataTypes } from "helpers/Constants";
1011
class VaultManager {
1112
private static instance: VaultManager;
1213

@@ -23,6 +24,15 @@ class VaultManager {
2324
filename ?? "Untitled"
2425
);
2526
let content = parseFrontmatterFieldsToString(databasefields, localSettings).concat("\n").concat(parseInlineFieldsToString(databasefields));
27+
28+
// Custom content by source
29+
switch (localSettings.source_data) {
30+
case SourceDataTypes.TAG:
31+
content = content.concat(`#${localSettings.source_form_result}\n`);
32+
break;
33+
default:
34+
}
35+
2636
// Obtain content from current row template
2737
try {
2838
if (DataviewService.isTruthy(localSettings.current_row_template) && localSettings.current_row_template.endsWith(".md")) {

0 commit comments

Comments
 (0)