Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 18 additions & 14 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -79,6 +95,8 @@ class ExtendedTaskListsSettingTab extends PluginSettingTab {
}),
);

new Setting(containerEl).setName("Includes").setHeading();

new Setting(containerEl)
.setName("Include not started tasks")
.addToggle((toggle) =>
Expand All @@ -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) =>
Expand Down