Checkbox Sort
approvedby mattang687
Automatically moves completed checkboxes to the end of the list
Checkbox Sorter š
Automatically moves completed checkboxes to the bottom of their list group when toggled. Preserves nested list structure while sorting.
Basic Example ā¶ļø
Click any checkbox to toggle it and watch it sink to the bottom of its peer group:
- [ ] Buy milk <-- Click this checkbox
- [ ] Get gas
- [x] Bread (already completed)
Becomes after clicking:
- [ ] Get gas ā Unticked stays on top
- [x] Buy milk ā Newly completed moves here
- [x] Bread ā Existing completed items
Features āØ
- Three-level configuration (global/file/list-marker)
- Nested list support - child items stay with parents
- Smart grouping - only affects peers at same indentation
- Multi-list handling - works with multiple lists in one file
Installation ā¬ļø
- Open Obsidian ā Settings ā Community plugins
- Click "Browse" and search "Obsidian Checkbox Sort"
- Install and enable plugin
- (Optional) Configure default behavior in plugin settings
Usage š ļø
Configuration Hierarchy (Lowest to Highest):
- Global Setting
- File Frontmatter (
checkbox-sort: [true|false]) - List Marker (
%%checkbox-sort: [true|false]%%)
Global Setting (enabled by default):
- [ ] Buy milk <-- Click toggles and sorts
- [ ] Get gas
File Frontmatter (add to YAML frontmatter):
---
checkbox-sort: false # Disable for this file
---
List Marker Override:
%%checkbox-sort: false%% <-- Disables sorting for next list
- [ ] Task 1
- [ ] Task 2
%%checkbox-sort: true%% <-- Enables sorting for this list
- [ ] Task A
- [ ] Task B
Nested List Example:
- [ ] Parent 1
- [ ] Child 1
- [ ] Child 2 <-- Click this checkbox
- [ ] Child 3
- [ ] Parent 2
Becomes after clicking:
- [ ] Parent 1
- [ ] Child 1
- [ ] Child 3
- [x] Child 2 <-- Completed moves here
- [ ] Parent 2
How It Works š§
- Clicking a checkbox:
- Toggles task state
- Finds all peer items at same indentation level
- Groups unticked items first (sorted as-is), then ticked items
- Preserves nested list structure under each item
Troubleshooting ā ļø
Sorting not working?
ā Verify no conflicting list markers exist above
ā Check frontmatter isn't overriding global settings
ā Ensure marker comments are directly above list
New file issues?
ā Save file first for frontmatter settings to take effect
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.