From df95e63ee7901700f68c08da39b87c844411629d Mon Sep 17 00:00:00 2001 From: m-kk <46383441+m-kk@users.noreply.github.com> Date: Fri, 7 Nov 2025 11:31:48 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20convert=20UI=20text=20to?= =?UTF-8?q?=20sentence=20case=20for=20Obsidian=20guidelines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Address plugin review requirement to use sentence case for all UI text. Updated ribbon icon tooltip, setting descriptions, and placeholders to follow lowercase convention (e.g., "table of contents" instead of "Table of Contents"). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- main.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main.ts b/main.ts index 16f1342..4a6d39c 100644 --- a/main.ts +++ b/main.ts @@ -109,7 +109,7 @@ export default class TableOfContentsPlugin extends Plugin { }); // Add ribbon icon - this.addRibbonIcon('list', 'Generate TOC', () => { + this.addRibbonIcon('list', 'Generate table of contents', () => { const activeView = this.app.workspace.getActiveViewOfType(MarkdownView); if (activeView) { void this.generateTableOfContents(activeView.editor, activeView); @@ -720,9 +720,9 @@ class TOCSettingTab extends PluginSettingTab { new Setting(containerEl) .setName('Table of contents title') - .setDesc('The title to display above the Table of Contents') + .setDesc('The title to display above the table of contents') .addText(text => text - .setPlaceholder('Table of Contents') + .setPlaceholder('Table of contents') .setValue(this.plugin.settings.tocTitle) .onChange(async (value) => { this.plugin.settings.tocTitle = value; @@ -731,7 +731,7 @@ class TOCSettingTab extends PluginSettingTab { new Setting(containerEl) .setName('Exclude H1 headings') - .setDesc('Skip level 1 headings when generating the Table of Contents') + .setDesc('Skip level 1 headings when generating the table of contents') .addToggle(toggle => toggle .setValue(this.plugin.settings.excludeH1) .onChange(async (value) => { @@ -753,7 +753,7 @@ class TOCSettingTab extends PluginSettingTab { new Setting(containerEl) .setName('Include links') - .setDesc('Make Table of Contents items clickable links to headings') + .setDesc('Make table of contents items clickable links to headings') .addToggle(toggle => toggle .setValue(this.plugin.settings.includeLinks) .onChange(async (value) => { @@ -777,8 +777,8 @@ class TOCSettingTab extends PluginSettingTab { }); new Setting(containerEl) - .setName('Auto-update Table of Contents') - .setDesc('Automatically update existing Table of Contents when the document changes') + .setName('Auto-update table of contents') + .setDesc('Automatically update existing table of contents when the document changes') .addToggle(toggle => toggle .setValue(this.plugin.settings.updateOnSave) .onChange(async (value) => {