mirror of
https://github.com/mattang687/obsidian-checkbox-sort.git
synced 2026-07-22 12:30:28 +00:00
address pr feedback
This commit is contained in:
parent
b8172165b7
commit
cb3c0440fc
4 changed files with 13 additions and 15 deletions
|
|
@ -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
22
main.ts
|
|
@ -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();
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"0.1.1": "1.8.9"
|
||||
"0.1.2": "1.8.9"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue