diff --git a/CHANGELOG.md b/CHANGELOG.md
index c01cdba..4c57258 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,10 @@
All notable changes to Rich Foot will be documented in this file.
+## [1.10.2] - 2024-12-11
+### 🐛 Fixed
+- Missing `Excluded Folders` section in the settings
+
## [1.10.1] - 2024-12-10
### 🐛 Fixed
- Extra padding on the bottom of the editor in Canvas / Kanban Cards
diff --git a/UPDATE.md b/UPDATE.md
index dc6a2b0..34798f6 100644
--- a/UPDATE.md
+++ b/UPDATE.md
@@ -1,6 +1,10 @@
## 🛑 Exclude Me Please
+### [1.10.2] - 2024-12-11
+#### 🐛 Fixed
+- Missing `Excluded Folders` section in the settings
+
### [1.10.1] - 2024-12-10
#### 🐛 Fixed
- Extra padding on the bottom of the editor in Canvas / Kanban Cards
diff --git a/example-vault.zip b/example-vault.zip
index 80803a0..9965b99 100644
Binary files a/example-vault.zip and b/example-vault.zip differ
diff --git a/example-vault/rich-foot-example/.obsidian/plugins/rich-foot/data.json b/example-vault/rich-foot-example/.obsidian/plugins/rich-foot/data.json
index 58058e6..51679c9 100644
--- a/example-vault/rich-foot-example/.obsidian/plugins/rich-foot/data.json
+++ b/example-vault/rich-foot-example/.obsidian/plugins/rich-foot/data.json
@@ -24,5 +24,5 @@
"updateDelay": 3000,
"excludedParentSelectors": [],
"frontmatterExclusionField": "",
- "lastVersion": "1.10.0"
+ "lastVersion": "1.10.1"
}
\ No newline at end of file
diff --git a/example-vault/rich-foot-example/.obsidian/plugins/rich-foot/main.js b/example-vault/rich-foot-example/.obsidian/plugins/rich-foot/main.js
index 1d5a558..f75be38 100644
--- a/example-vault/rich-foot-example/.obsidian/plugins/rich-foot/main.js
+++ b/example-vault/rich-foot-example/.obsidian/plugins/rich-foot/main.js
@@ -107,7 +107,7 @@ var ReleaseNotesModal = class extends import_obsidian.Modal {
};
// virtual-module:virtual:release-notes
-var releaseNotes = '
\u{1F6D1} Exclude Me Please
\n[1.10.1] - 2024-12-10
\n\u{1F41B} Fixed
\n\n- Extra padding on the bottom of the editor in Canvas / Kanban Cards
\n
\n[1.10.0] - 2024-12-08
\n\u2728 Added
\n\n- Exclusion rule via
frontmatter
field \n- Custom exclusions using specified DOM parent selectors for advanced control
\n
\n
\n';
+var releaseNotes = '\u{1F6D1} Exclude Me Please
\n[1.10.2] - 2024-12-11
\n\u{1F41B} Fixed
\n\n- Missing
Excluded Folders
section in the settings \n
\n[1.10.1] - 2024-12-10
\n\u{1F41B} Fixed
\n\n- Extra padding on the bottom of the editor in Canvas / Kanban Cards
\n
\n[1.10.0] - 2024-12-08
\n\u2728 Added
\n\n- Exclusion rule via
frontmatter
field \n- Custom exclusions using specified DOM parent selectors for advanced control
\n
\n
\n';
// src/settings.js
var import_obsidian2 = require("obsidian");
@@ -507,7 +507,7 @@ var RichFootSettingTab = class extends import_obsidian2.PluginSettingTab {
}));
containerEl.createEl("hr");
containerEl.createEl("h3", { text: "Exclusion Rules" });
- containerEl.createEl("h4", { text: "Excluded Folders" });
+ containerEl.createEl("h3", { text: "Excluded Folders" });
containerEl.createEl("p", {
text: "Notes in excluded folders (and their subfolders) will not display the Rich Foot footer. This is useful for system folders or areas where you don't want footer information to appear.",
cls: "setting-item-description"
@@ -528,6 +528,22 @@ var RichFootSettingTab = class extends import_obsidian2.PluginSettingTab {
});
});
}
+ const newFolderSetting = new import_obsidian2.Setting(containerEl).setName("Add excluded folder").setDesc("Enter a folder path or browse to select").addText((text) => text.setPlaceholder("folder/subfolder")).addButton((button) => button.setButtonText("Browse").onClick(async () => {
+ const folder = await this.browseForFolder();
+ if (folder) {
+ const textComponent = newFolderSetting.components[0];
+ textComponent.setValue(folder);
+ }
+ })).addButton((button) => button.setButtonText("Add").onClick(async () => {
+ const textComponent = newFolderSetting.components[0];
+ const newFolder = textComponent.getValue().trim();
+ if (newFolder && !this.plugin.settings.excludedFolders.includes(newFolder)) {
+ this.plugin.settings.excludedFolders.push(newFolder);
+ await this.plugin.saveSettings();
+ textComponent.setValue("");
+ this.display();
+ }
+ }));
containerEl.createEl("h4", { text: "Exclude Rich Foot via Frontmatter" });
new import_obsidian2.Setting(containerEl).setName("Frontmatter Exclusion Field").setDesc("If this frontmatter field exists and has a truthy value (true, yes, 1, on), Rich Foot will not be shown on that note").addText((text) => text.setPlaceholder("e.g., exclude-rich-foot").setValue(this.plugin.settings.frontmatterExclusionField).onChange(async (value) => {
this.plugin.settings.frontmatterExclusionField = value.trim();
diff --git a/example-vault/rich-foot-example/.obsidian/plugins/rich-foot/manifest.json b/example-vault/rich-foot-example/.obsidian/plugins/rich-foot/manifest.json
index 72778ee..daec9d6 100644
--- a/example-vault/rich-foot-example/.obsidian/plugins/rich-foot/manifest.json
+++ b/example-vault/rich-foot-example/.obsidian/plugins/rich-foot/manifest.json
@@ -1,7 +1,7 @@
{
"id": "rich-foot",
"name": "Rich Foot",
- "version": "1.10.1",
+ "version": "1.10.2",
"minAppVersion": "1.5.0",
"description": "Adds backlink tags and created/modified dates to the footer of your notes.",
"author": "Justin Parker (eQui\\\\ Labs)",
diff --git a/example-vault/rich-foot-example/.obsidian/workspace.json b/example-vault/rich-foot-example/.obsidian/workspace.json
index 4e1373d..bf1b9ff 100644
--- a/example-vault/rich-foot-example/.obsidian/workspace.json
+++ b/example-vault/rich-foot-example/.obsidian/workspace.json
@@ -4,11 +4,11 @@
"type": "split",
"children": [
{
- "id": "d696239f5ab79796",
+ "id": "aeda690654931e5b",
"type": "tabs",
"children": [
{
- "id": "5413ece24fd1a9d2",
+ "id": "bf09cc60e5809e92",
"type": "leaf",
"state": {
"type": "markdown",
@@ -16,7 +16,7 @@
"file": "🦶 Rich Foot.md",
"mode": "preview",
"backlinks": false,
- "source": true
+ "source": false
},
"icon": "lucide-file",
"title": "🦶 Rich Foot"
@@ -3218,6 +3218,36 @@
{
"id": "2913742b915399b2",
"type": "leaf",
+ "state": {
+ "type": "empty",
+ "state": {},
+ "icon": "lucide-file",
+ "title": "New tab"
+ }
+ },
+ {
+ "id": "282dd451b3e8cc9b",
+ "type": "leaf",
+ "state": {
+ "type": "empty",
+ "state": {},
+ "icon": "lucide-file",
+ "title": "New tab"
+ }
+ },
+ {
+ "id": "35d46c6a3da91a5f",
+ "type": "leaf",
+ "state": {
+ "type": "empty",
+ "state": {},
+ "icon": "lucide-file",
+ "title": "New tab"
+ }
+ },
+ {
+ "id": "27f7e05636c07604",
+ "type": "leaf",
"state": {
"type": "Saved Queries View",
"state": {},
@@ -3226,7 +3256,7 @@
}
}
],
- "currentTab": 312
+ "currentTab": 315
}
],
"direction": "horizontal",
@@ -3247,8 +3277,11 @@
"obsidian-kanban:Create new board": false
}
},
- "active": "5413ece24fd1a9d2",
+ "active": "bf09cc60e5809e92",
"lastOpenFiles": [
+ "exclude/me too/no rich-feet here either.md",
+ "exclude/no rich-feet here.md",
+ "🦶 Rich Foot.md",
"releases/v1.10.0 - 🛑 Exclude Me Please.md",
"2024-12-07.md",
"Untitled Kanban.md",
@@ -3256,12 +3289,9 @@
"misc-notes/two.md",
"misc-notes/one.md",
"misc-notes/three.md",
- "exclude/me too/no rich-feet here either.md",
- "exclude/no rich-feet here.md",
"misc-notes/link test.md",
"misc-notes/link test 2.md",
"releases/v1.9.0 - 🥙 Stuffed Links.md",
- "🦶 Rich Foot.md",
"pixel-banner-images/no-fee-allowed.png",
"test.md",
"releases/v1.8.0 - 🫣 Page Preview Support.md",
diff --git a/manifest.json b/manifest.json
index 72778ee..daec9d6 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,7 +1,7 @@
{
"id": "rich-foot",
"name": "Rich Foot",
- "version": "1.10.1",
+ "version": "1.10.2",
"minAppVersion": "1.5.0",
"description": "Adds backlink tags and created/modified dates to the footer of your notes.",
"author": "Justin Parker (eQui\\\\ Labs)",
diff --git a/src/settings.js b/src/settings.js
index e9f54ae..c632a76 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -683,7 +683,7 @@ export class RichFootSettingTab extends PluginSettingTab {
containerEl.createEl('h3', { text: 'Exclusion Rules' });
// Excluded Folders Section
- containerEl.createEl('h4', { text: 'Excluded Folders' });
+ containerEl.createEl('h3', { text: 'Excluded Folders' });
containerEl.createEl('p', {
text: 'Notes in excluded folders (and their subfolders) will not display the Rich Foot footer. This is useful for system folders or areas where you don\'t want footer information to appear.',
cls: 'setting-item-description'
@@ -710,6 +710,35 @@ export class RichFootSettingTab extends PluginSettingTab {
});
});
}
+ // Add new folder section
+ const newFolderSetting = new Setting(containerEl)
+ .setName('Add excluded folder')
+ .setDesc('Enter a folder path or browse to select')
+ .addText(text => text
+ .setPlaceholder('folder/subfolder'))
+ .addButton(button => button
+ .setButtonText('Browse')
+ .onClick(async () => {
+ const folder = await this.browseForFolder();
+ if (folder) {
+ const textComponent = newFolderSetting.components[0];
+ textComponent.setValue(folder);
+ }
+ }))
+ .addButton(button => button
+ .setButtonText('Add')
+ .onClick(async () => {
+ const textComponent = newFolderSetting.components[0];
+ const newFolder = textComponent.getValue().trim();
+
+ if (newFolder && !this.plugin.settings.excludedFolders.includes(newFolder)) {
+ this.plugin.settings.excludedFolders.push(newFolder);
+ await this.plugin.saveSettings();
+ textComponent.setValue('');
+ this.display();
+ }
+ }));
+
// Frontmatter Exclusion Field
containerEl.createEl('h4', { text: 'Exclude Rich Foot via Frontmatter' });