update
This commit is contained in:
6
main.js
6
main.js
@@ -1847,8 +1847,8 @@ var GridView = class extends import_obsidian7.ItemView {
|
||||
}
|
||||
try {
|
||||
await this.app.vault.createFolder(folderPath);
|
||||
await this.app.vault.create(`${folderPath}/features.md`, "");
|
||||
await this.app.vault.create(`${folderPath}/specs.md`, "");
|
||||
await this.app.vault.create(`${folderPath}/data.md`, "");
|
||||
await this.app.vault.create(`${folderPath}/detail.md`, "");
|
||||
this.render();
|
||||
} catch (error) {
|
||||
console.error(
|
||||
@@ -1867,7 +1867,7 @@ var GridView = class extends import_obsidian7.ItemView {
|
||||
});
|
||||
addFeatureFilesButton.addEventListener("click", async () => {
|
||||
const basePath = this.sourcePath === "/" ? "" : this.sourcePath;
|
||||
const filenames = ["features.md", "specs.md"];
|
||||
const filenames = ["data.md", "detail.md"];
|
||||
try {
|
||||
for (const filename of filenames) {
|
||||
const filePath = basePath ? `${basePath}/${filename}` : filename;
|
||||
|
||||
Reference in New Issue
Block a user