--- title: Library Enhancements updated: 2026-03-20 --- Improve file organization ## Tasks 1. **Hashtag extraction** - Scan document text for `#tag` patterns (exclude Markdown headings) - Store extracted tags in the SQLite index (`doc_tags` table) - Re-index tags on save and on watcher events 2. **Task list extraction** - Scan document for `- [ ]` patterns - Store extracted tasks in the SQLite index (`doc_tasks` table) - Re-index tasks on save and on watcher events 3. **Smart folders** - Predefined filter rules: tag match, date range, word-count threshold, location - `smart_folder_list() -> Vec`, `smart_folder_query(id) -> Vec` - UI: render smart folders in the sidebar above/below locations 4. **Favorites** - Toggle-favorite on any document (`doc_set_favorite(doc_ref, bool)`) - Persist in SQLite; surface a "Favorites" virtual folder in the sidebar 5. **Sidebar UI updates** - New sections for Smart Folders and Favorites - Badge counts on each smart folder / favorites section - Drag-and-drop reorder for smart folders