jdberry / tag

A command line tool to manipulate tags on Mac OS X files, and to query for files with those tags.
MIT License
1.45k stars 93 forks source link

Possibility to rename tags themselves #69

Open porg opened 2 years ago

porg commented 2 years ago

User Goal

Syntax and working principle

tag --change targetTag sourceTag1 [ sourceTag2 … source*tag*wildcard* … sourceTagX ]
WARNING: The target tag "targetTag" already exists!
Do you want to merge your stated X source tag(s) into it? (y / n)

Design rationale behind argument nomenclature and order

More advanced: targetTag can be static text plus integrating sourceTag via variable

Super advanced: targetTag can insert positional matches from single RegEx source tag

tag --change 'MyPrefix $2 - $1' 'singleRegexSourceTag---\d\d(\d\d)_(\d\d)'
porg commented 1 year ago

I'd appreciate a reaction regarding this my proposal. Thanks!