mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-25 18:47:42 -06:00
Another way to explore the library next to By Date and Keywords: a tree of the folders that hold imported photos, with counts (subfolders included), under the disk or network share each is on. Local stays the way to browse any folder on disk. - catalog: Catalog::folder_tree and Filter::library_folder. Each disk is a volume row (drive letter, Windows share, /Volumes/<share>, /media, /mnt, gvfs, /net…), found from the stored paths alone, so an offline share costs nothing. Levels that hold nothing and lead to one folder fold into one row; depth is bounded. The tree and the filter read paths through one splitter (separators, `.`, `..`, verbatim UNC prefix, repeated separators), and a row that would cover other disks' photos is not choosable - engine: library.folders, library.removeFolder (to Recently Deleted, one undo step, no file touched; a whole disk or a folder spanning several needs `disk: true`, the startup disk never), libraryFolder in library.filter, chip; a chosen folder follows folder.rename / folder.move and their undo - ui: collapsible Folders section; the chosen folder's row is always opened into view; right-click (row or triangle) Rename, Move, Show in Finder, Remove from Library…; disk rows Remove Disk from Library…; both ask first Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>