From 51e9813fdfa94ad565ea4ea66bdd17782a6d40ec Mon Sep 17 00:00:00 2001 From: joeriddles Date: Tue, 12 May 2026 22:50:03 -0700 Subject: [PATCH] feat: reorder and group settings Signed-off-by: joeriddles --- src/settings.ts | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/src/settings.ts b/src/settings.ts index 9741f78..86bae1c 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -51,6 +51,22 @@ class ExtendedTaskListsSettingTab extends PluginSettingTab { }), ); + new Setting(containerEl) + .setName("Use full filepath") + .setDesc( + "If checked, the full Vault filepath is used for the label of grouped task items in the generated TODO file", + ) + .addToggle((toggle) => + toggle + .setValue(this.plugin.settings.useFullFilepath) + .onChange(async (value) => { + this.plugin.settings.useFullFilepath = value; + await this.plugin.saveSettings(); + }), + ); + + new Setting(containerEl).setName("Excludes").setHeading(); + new Setting(containerEl) .setName("Exclude file pattern") .setDesc( @@ -79,6 +95,8 @@ class ExtendedTaskListsSettingTab extends PluginSettingTab { }), ); + new Setting(containerEl).setName("Includes").setHeading(); + new Setting(containerEl) .setName("Include not started tasks") .addToggle((toggle) => @@ -90,20 +108,6 @@ class ExtendedTaskListsSettingTab extends PluginSettingTab { }), ); - new Setting(containerEl) - .setName("Use full filepath") - .setDesc( - "If checked, the full Vault filepath is used for the label of grouped task items in the generated TODO file", - ) - .addToggle((toggle) => - toggle - .setValue(this.plugin.settings.useFullFilepath) - .onChange(async (value) => { - this.plugin.settings.useFullFilepath = value; - await this.plugin.saveSettings(); - }), - ); - new Setting(containerEl) .setName("Include in progress tasks") .addToggle((toggle) =>