diff --git a/docs/doc.md b/docs/doc.md index 9ba71bc..2cf0ced 100644 --- a/docs/doc.md +++ b/docs/doc.md @@ -15,17 +15,16 @@ By default, the following folders structure is used: ``` /Sets # "Sets Folder" can be configured - |- Types - | |- Name1Type.md + |- Types # "Types Folder" can be configured + | |- Name1Type.md # "Type Suffix" can be configured | └─ Name1Type.md - |- Sets - | |- Name1Set # "Type Set Suffix" can be configured - | | |─ item1.md - | | └─ item2.md - | └─ Name2Set - | |─ item3.md - | └─ item4.md - |- Collections + |- Name1Set # "Type Set Suffix" can be configured + | |─ item1.md + | └─ item2.md + |─ Name2Set + | |─ item3.md + | └─ item4.md + |- Collections # "Collections Folder" can be configured | |- Collection1 | | └─ Collection1.md | └─ Collection2 diff --git a/manifest-beta.json b/manifest-beta.json index d289e61..ac89e4b 100644 --- a/manifest-beta.json +++ b/manifest-beta.json @@ -1,7 +1,7 @@ { "id": "obsidian-sets", "name": "Sets", - "version": "1.0.0", + "version": "1.0.1", "minAppVersion": "1.4.4", "description": "Create, edit and search sets of notes like Notion or AnyType DBs", "author": "Gabriele Cannata", diff --git a/manifest.json b/manifest.json index d289e61..ac89e4b 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-sets", "name": "Sets", - "version": "1.0.0", + "version": "1.0.1", "minAppVersion": "1.4.4", "description": "Create, edit and search sets of notes like Notion or AnyType DBs", "author": "Gabriele Cannata", diff --git a/package.json b/package.json index 5e27914..d63230d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-sets", - "version": "1.0.0", + "version": "1.0.1", "description": "A plugin for Obsidian.md that allows you to create, edit and search sets of notes like Notion or AnyType DBs", "main": "main.js", "scripts": { diff --git a/src/SettingTab.tsx b/src/SettingTab.tsx index b8448e6..b8193ab 100644 --- a/src/SettingTab.tsx +++ b/src/SettingTab.tsx @@ -55,6 +55,42 @@ export class SetsSettingsTab extends PluginSettingTab { await this.plugin.saveSettings(); } )); + + // setting for typesFolder + new Setting(containerEl) + .setName("Types Folder") + .setDesc("The subfolder where Sets will store its types.") + .addText(text => text + .setValue(this.plugin.settings.typesFolder) + .onChange(async (value) => { + this.plugin.settings.typesFolder = value; + await this.plugin.saveSettings(); + } + )); + + // setting for typesSuffix + new Setting(containerEl) + .setName("Types Suffix") + .setDesc("The suffix that will be added to the name of the type.") + .addText(text => text + .setValue(this.plugin.settings.typesSuffix) + .onChange(async (value) => { + this.plugin.settings.typesSuffix = value; + await this.plugin.saveSettings(); + } + )); + + // setting for collectionsRoot + new Setting(containerEl) + .setName("Collections Folder") + .setDesc("The subfolder where Sets will store its collections.") + .addText(text => text + .setValue(this.plugin.settings.collectionsRoot) + .onChange(async (value) => { + this.plugin.settings.collectionsRoot = value; + await this.plugin.saveSettings(); + } + )); // add a settings for typeAttributeKey new Setting(containerEl) @@ -68,6 +104,8 @@ export class SetsSettingsTab extends PluginSettingTab { } )); + + // add a settings for collectionAttributeKey new Setting(containerEl) .setName("Collection Attribute Key") @@ -80,6 +118,8 @@ export class SetsSettingsTab extends PluginSettingTab { } )); + + // add a setting for topResults new Setting(containerEl) .setName("Top Results")