Skip to content

Commit

Permalink
v1.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jparkerweb committed Dec 11, 2024
1 parent e9dd35b commit 9e53aa0
Show file tree
Hide file tree
Showing 9 changed files with 97 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions UPDATE.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Binary file modified example-vault.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
"updateDelay": 3000,
"excludedParentSelectors": [],
"frontmatterExclusionField": "",
"lastVersion": "1.10.0"
"lastVersion": "1.10.1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ var ReleaseNotesModal = class extends import_obsidian.Modal {
};

// virtual-module:virtual:release-notes
var releaseNotes = '<h2>\u{1F6D1} Exclude Me Please</h2>\n<h3>[1.10.1] - 2024-12-10</h3>\n<h4>\u{1F41B} Fixed</h4>\n<ul>\n<li>Extra padding on the bottom of the editor in Canvas / Kanban Cards</li>\n</ul>\n<h3>[1.10.0] - 2024-12-08</h3>\n<h4>\u2728 Added</h4>\n<ul>\n<li>Exclusion rule via <code>frontmatter</code> field</li>\n<li>Custom exclusions using specified DOM parent selectors for advanced control</li>\n</ul>\n<p><a href="https://raw.githubusercontent.com/jparkerweb/ref/refs/heads/main/equill-labs/rich-foot/rich-foot-v1.10.0.jpg"><img src="https://raw.githubusercontent.com/jparkerweb/ref/refs/heads/main/equill-labs/rich-foot/rich-foot-v1.10.0.jpg" alt="screenshot"></a></p>\n';
var releaseNotes = '<h2>\u{1F6D1} Exclude Me Please</h2>\n<h3>[1.10.2] - 2024-12-11</h3>\n<h4>\u{1F41B} Fixed</h4>\n<ul>\n<li>Missing <code>Excluded Folders</code> section in the settings</li>\n</ul>\n<h3>[1.10.1] - 2024-12-10</h3>\n<h4>\u{1F41B} Fixed</h4>\n<ul>\n<li>Extra padding on the bottom of the editor in Canvas / Kanban Cards</li>\n</ul>\n<h3>[1.10.0] - 2024-12-08</h3>\n<h4>\u2728 Added</h4>\n<ul>\n<li>Exclusion rule via <code>frontmatter</code> field</li>\n<li>Custom exclusions using specified DOM parent selectors for advanced control</li>\n</ul>\n<p><a href="https://raw.githubusercontent.com/jparkerweb/ref/refs/heads/main/equill-labs/rich-foot/rich-foot-v1.10.0.jpg"><img src="https://raw.githubusercontent.com/jparkerweb/ref/refs/heads/main/equill-labs/rich-foot/rich-foot-v1.10.0.jpg" alt="screenshot"></a></p>\n';

// src/settings.js
var import_obsidian2 = require("obsidian");
Expand Down Expand Up @@ -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"
Expand All @@ -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();
Expand Down
Original file line number Diff line number Diff line change
@@ -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)",
Expand Down
46 changes: 38 additions & 8 deletions example-vault/rich-foot-example/.obsidian/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
"type": "split",
"children": [
{
"id": "d696239f5ab79796",
"id": "aeda690654931e5b",
"type": "tabs",
"children": [
{
"id": "5413ece24fd1a9d2",
"id": "bf09cc60e5809e92",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "🦶 Rich Foot.md",
"mode": "preview",
"backlinks": false,
"source": true
"source": false
},
"icon": "lucide-file",
"title": "🦶 Rich Foot"
Expand Down Expand Up @@ -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": {},
Expand All @@ -3226,7 +3256,7 @@
}
}
],
"currentTab": 312
"currentTab": 315
}
],
"direction": "horizontal",
Expand All @@ -3247,21 +3277,21 @@
"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",
"Untitled.canvas",
"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",
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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)",
Expand Down
31 changes: 30 additions & 1 deletion src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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' });
Expand Down

0 comments on commit 9e53aa0

Please sign in to comment.