Skip to content

Commit 51e9813

Browse files
committed
feat: reorder and group settings
Signed-off-by: joeriddles <joeriddles10@gmail.com>
1 parent a45db40 commit 51e9813

1 file changed

Lines changed: 18 additions & 14 deletions

File tree

src/settings.ts

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,22 @@ class ExtendedTaskListsSettingTab extends PluginSettingTab {
5151
}),
5252
);
5353

54+
new Setting(containerEl)
55+
.setName("Use full filepath")
56+
.setDesc(
57+
"If checked, the full Vault filepath is used for the label of grouped task items in the generated TODO file",
58+
)
59+
.addToggle((toggle) =>
60+
toggle
61+
.setValue(this.plugin.settings.useFullFilepath)
62+
.onChange(async (value) => {
63+
this.plugin.settings.useFullFilepath = value;
64+
await this.plugin.saveSettings();
65+
}),
66+
);
67+
68+
new Setting(containerEl).setName("Excludes").setHeading();
69+
5470
new Setting(containerEl)
5571
.setName("Exclude file pattern")
5672
.setDesc(
@@ -79,6 +95,8 @@ class ExtendedTaskListsSettingTab extends PluginSettingTab {
7995
}),
8096
);
8197

98+
new Setting(containerEl).setName("Includes").setHeading();
99+
82100
new Setting(containerEl)
83101
.setName("Include not started tasks")
84102
.addToggle((toggle) =>
@@ -90,20 +108,6 @@ class ExtendedTaskListsSettingTab extends PluginSettingTab {
90108
}),
91109
);
92110

93-
new Setting(containerEl)
94-
.setName("Use full filepath")
95-
.setDesc(
96-
"If checked, the full Vault filepath is used for the label of grouped task items in the generated TODO file",
97-
)
98-
.addToggle((toggle) =>
99-
toggle
100-
.setValue(this.plugin.settings.useFullFilepath)
101-
.onChange(async (value) => {
102-
this.plugin.settings.useFullFilepath = value;
103-
await this.plugin.saveSettings();
104-
}),
105-
);
106-
107111
new Setting(containerEl)
108112
.setName("Include in progress tasks")
109113
.addToggle((toggle) =>

0 commit comments

Comments
 (0)