filetags adds or removes simple tags in filenames using a " -- " separator before the extension. It supports batch operations, interactive and GUI modes, and tag-tree browsing.
Overview
filetags is a Python command-line tool for users who store tags directly in file names rather than in a separate database. Tags sit between the descriptive name and extension, separated by space-double-dash-space, optionally with timestamps in the name prefix.
You can pass explicit tag strings, run interactive or GUI prompts, remove tags with minus prefixes, process many files at once, and recurse for tag gardening or tag-tree generation. Optional .filetags files in parent folders supply a controlled vocabulary with tab completion and mutually exclusive tag lines.
Advanced options build filtered link trees under a home directory, list tag usage statistics, enforce vocabulary-only tags, dry-run renames, and integrate with external file browsers such as geeqie on GNU/Linux or Windows Explorer helpers. Symbolic-link sources can receive matching tags when names align.
The tool targets shell-centric workflows and file managers that rename files, complementing bulk rename utilities when the primary need is consistent filename tagging.
Key features
- Add and remove filename-embedded tags
- Interactive text and GUI tagging modes
- Batch tagging across many files
- Controlled vocabulary via .filetags file
- Tag filter and nested tag-tree views
- Tag gardening and usage listings
- Recursive directory operations
- Dry-run and vocabulary enforcement
Use cases
- Tagging photo and document archives
- Project labels in filename conventions
- Browsing files by tag combinations
- Cleaning inconsistent tag spellings