[Feature]: Sort into Folders by Multi-Tag #80

Closed
opened 2026-06-13 16:50:08 +00:00 by ValleyGeek · 1 comment
Owner

Problem or use case

Tagging images with multiple tags blocks sorting

Proposed solution

Add a checkbox to the Sort into Folder by Tags dialog for "Create Multi-Tag Directories" which will create a directory with the name of all the applied tags sorted alphabetically and delimited by commas. An image with multiple tags would then get moved into a directory named [Tag1], [Tag2], [TagN]

Alternatives considered

No response

### Problem or use case Tagging images with multiple tags blocks sorting ### Proposed solution Add a checkbox to the `Sort into Folder by Tags` dialog for "Create Multi-Tag Directories" which will create a directory with the name of all the applied tags sorted alphabetically and delimited by commas. An image with multiple tags would then get moved into a directory named `[Tag1], [Tag2], [TagN]` ### Alternatives considered _No response_
Member

Implemented on branch 0.1.43/issue-40-50-80-sort-into-folders (queued for PR to main, not yet opened; version bumped to 0.1.44), alongside #40 and #50.

New Create Multi-Tag Directories checkbox in the Sort into Folders dialog, off by default (DR-010's single-tag behavior is unchanged when unchecked). When enabled, images with more than one workspace tag become eligible too, and move into a folder named after every tag, sorted alphabetically and comma-separated (e.g. Beach, Mountain) — exactly as proposed. The preview list and exclusion counts rebuild live when the checkbox is toggled.

is_sort_eligible(), single_sort_tag(), and sort_exclusion_reason() (core/sort_into_folders.py) gained a multi_tag keyword, threaded through the matching WorkingDB query methods and SortWorker. Recorded the relaxation of DR-010 as DR-024 in docs/DECISIONS.md (default behavior is unchanged; the new behavior is opt-in per run). Covered by new tests in tests/test_pr12_actions.py (eligibility/destination-naming logic, dialog checkbox/rebuild, end-to-end SortWorker move).

Closing as implemented.

Implemented on branch `0.1.43/issue-40-50-80-sort-into-folders` (queued for PR to `main`, not yet opened; version bumped to 0.1.44), alongside #40 and #50. New **Create Multi-Tag Directories** checkbox in the Sort into Folders dialog, off by default (DR-010's single-tag behavior is unchanged when unchecked). When enabled, images with more than one workspace tag become eligible too, and move into a folder named after every tag, sorted alphabetically and comma-separated (e.g. `Beach, Mountain`) — exactly as proposed. The preview list and exclusion counts rebuild live when the checkbox is toggled. `is_sort_eligible()`, `single_sort_tag()`, and `sort_exclusion_reason()` (`core/sort_into_folders.py`) gained a `multi_tag` keyword, threaded through the matching `WorkingDB` query methods and `SortWorker`. Recorded the relaxation of DR-010 as **DR-024** in `docs/DECISIONS.md` (default behavior is unchanged; the new behavior is opt-in per run). Covered by new tests in `tests/test_pr12_actions.py` (eligibility/destination-naming logic, dialog checkbox/rebuild, end-to-end `SortWorker` move). Closing as implemented.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ai-collab/bulk-image-organizer#80
No description provided.