[Feature]: Create Tags From Sub-directories #31

Closed
opened 2026-06-09 06:21:25 +00:00 by ValleyGeek · 2 comments
Owner

Problem or use case

Automatically create tags based on existing sub-directory names and image arrangement

Proposed solution

Add a button to the left of New Tag called "Create from Sub-directories" that opens a dialog with the following options:

  • Checkbox: Use only directories containing images
    • Limits tags to be created only for sub-directories that contain scanned images. Otherwise, tags are created for every directory in the tree regardless of image population
  • Checkbox: Auto add tags to images in sub-directories
    • Automatically adds the new tags to the scanned images which exist in those directories
  • Checkbox: Limit tags to first-level directories only
    • Limits the tag creation to first-level directories only. Tags all images in that directory tree with the first-level directory tag
  • Checkbox: Replace all other tags found on sub-directory images
    • For all images given tags from sub-directory names, user added tags are cleared and replaced with only the new tag from the applicable directory

Images would either be tagged with the name of the directory they reside in or the first-level directory, based on checkbox selection

Alternatives considered

No response

### Problem or use case Automatically create tags based on existing sub-directory names and image arrangement ### Proposed solution Add a button to the left of `New Tag` called "Create from Sub-directories" that opens a dialog with the following options: - Checkbox: Use only directories containing images - Limits tags to be created only for sub-directories that contain scanned images. Otherwise, tags are created for every directory in the tree regardless of image population - Checkbox: Auto add tags to images in sub-directories - Automatically adds the new tags to the scanned images which exist in those directories - Checkbox: Limit tags to first-level directories only - Limits the tag creation to first-level directories only. Tags all images in that directory tree with the first-level directory tag - Checkbox: Replace all other tags found on sub-directory images - For all images given tags from sub-directory names, user added tags are cleared and replaced with only the new tag from the applicable directory Images would either be tagged with the name of the directory they reside in or the first-level directory, based on checkbox selection ### Alternatives considered _No response_
Member

Implemented on branch 0.1.20/issue-31-create-tags-from-subdirs (dev version 0.1.20-feature.31).

UI

  • Tag panel header: Create from Sub-directories button immediately left of New Tag.
  • Dialog with four checkboxes matching the issue spec (defaults: images-only dirs and auto-tag on; first-level and replace off).

Behavior

  • Creates workspace tags from sub-directory names (validated like manual tags; invalid names are skipped with status feedback).
  • Optional auto-assignment maps each image to its parent directory tag, or first-level directory when that option is checked.
  • Replace removes user/panel tags on affected images but preserves DELETE and F-DUPE_ / V-DUPE_ tags.
  • Tag assignments are undoable via the existing undo stack.

Tests: tests/test_subdir_tags.py (planner, TagManager, dialog defaults, no-directory guard).

Implemented on branch `0.1.20/issue-31-create-tags-from-subdirs` (dev version `0.1.20-feature.31`). **UI** - Tag panel header: **Create from Sub-directories** button immediately left of **New Tag**. - Dialog with four checkboxes matching the issue spec (defaults: images-only dirs and auto-tag on; first-level and replace off). **Behavior** - Creates workspace tags from sub-directory names (validated like manual tags; invalid names are skipped with status feedback). - Optional auto-assignment maps each image to its parent directory tag, or first-level directory when that option is checked. - **Replace** removes user/panel tags on affected images but preserves `DELETE` and `F-DUPE_` / `V-DUPE_` tags. - Tag assignments are undoable via the existing undo stack. **Tests:** `tests/test_subdir_tags.py` (planner, TagManager, dialog defaults, no-directory guard).
Grok closed this issue 2026-06-12 00:16:43 +00:00
Member

Enhancement validated and approved. Shipped on branch 0.1.20/issue-31-create-tags-from-subdirs for release 0.1.21 (PR to follow).

Delivered: Create from Sub-directories with options dialog, cancellable Building Tag List progress, toolbox layout polish, existing-tag reuse, comma-formatted scan/build counts.

Enhancement validated and approved. Shipped on branch `0.1.20/issue-31-create-tags-from-subdirs` for release **0.1.21** (PR to follow). **Delivered:** Create from Sub-directories with options dialog, cancellable Building Tag List progress, toolbox layout polish, existing-tag reuse, comma-formatted scan/build counts.
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#31
No description provided.