Automatically add tag to all files in folders and keep it updated

It is currently possible to tag a folder, but it would be nice to have the option to automatically add a certain tag to all files within a folder and keep that tag updated. So for instance if I have a folder called “mechanics”, I could set that folder to add the tag “physics” to all files that are currently in it or that are moved to it in the future; moving a file out of the folder would then ask me if I’d like to keep that tag in the file or eliminate it. Thanks!

7 Likes

I have requested this option as well Auto-tagging using folders tags /w tag stripping

1 Like

Unfortunately this fantastic feature is still not available even after 3 Years :frowning:

New user here. I’d like to see that feature, too!

It is very, VERY tedious for the extra steps to open the folder, strg+a all files and drag the tag over one of the marked files.
That would be a REALLY bad workflow!

Thanks for starting Automatically add tag to all files in folders and keep it updated — it is helpful seeing how others approach automatically and files. I recently updated my own bookmarks for automatically after testing several community recommendations.

You can check out the one I switched to over at spec-sheet-hub.pages.dev/r/tagspaces_discourse_group

A stopgap that works today, if you use filename-based tags: a small watcher script (fswatch/inotify or a scheduled task) that appends [physics] to the names of files in that folder and strips it when they leave. Downside is that renames outside the app can break links, and sync tools get noisy. If your tags live in sidecar metadata instead, the same script would have to rewrite those files, which is more fragile. Native inheritance would still be much cleaner, but this closes most of the workflow gap in the meantime.