address pr feedback

This commit is contained in:
Matt 2025-05-02 23:41:49 -07:00
parent b8172165b7
commit cb3c0440fc
4 changed files with 13 additions and 15 deletions

View file

@ -1,4 +1,4 @@
# Obsidian Checkbox Sorter 🔄
# Checkbox Sorter 🔄
Automatically moves completed checkboxes to the bottom of their list group when toggled. Preserves nested list structure while sorting.

22
main.ts
View file

@ -358,7 +358,16 @@ class CheckboxSortSettingTab extends PluginSettingTab {
containerEl.empty();
containerEl.createEl('h2', {text: 'Checkbox Sorter Settings'});
new Setting(containerEl)
.setName('Enable checkbox sorting globally')
.setDesc('If enabled, clicking checkboxes will sort them within their peer group (unticked first, then ticked). This can be overridden by file frontmatter or list markers later.')
.addToggle(toggle => toggle
.setValue(this.plugin.settings.enableGlobalCheckboxSort)
.onChange(async (value) => {
this.plugin.debugLog('Global sort setting changed:', value);
this.plugin.settings.enableGlobalCheckboxSort = value;
await this.plugin.saveSettings();
}));
new Setting(containerEl)
.setName('Enable debug mode')
@ -369,16 +378,5 @@ class CheckboxSortSettingTab extends PluginSettingTab {
this.plugin.settings.debugMode = value;
await this.plugin.saveSettings();
}));
new Setting(containerEl)
.setName('Enable Checkbox Sorting Globally')
.setDesc('If enabled, clicking checkboxes will sort them within their peer group (unticked first, then ticked). This can be overridden by file frontmatter or list markers later.')
.addToggle(toggle => toggle
.setValue(this.plugin.settings.enableGlobalCheckboxSort)
.onChange(async (value) => {
this.plugin.debugLog('Global sort setting changed:', value);
this.plugin.settings.enableGlobalCheckboxSort = value;
await this.plugin.saveSettings();
}));
}
}

View file

@ -1,7 +1,7 @@
{
"id": "checkbox-sort",
"name": "Checkbox Sort",
"version": "0.1.1",
"version": "0.1.2",
"minAppVersion": "0.15.0",
"description": "Automatically moves completed checkboxes to the end of the list",
"author": "mattang687",

View file

@ -1,3 +1,3 @@
{
"0.1.1": "1.8.9"
"0.1.2": "1.8.9"
}