dirkleas / rackcli

CLI for VCV Rack for managing your local rack installation and installed plugins
BSD 3-Clause "New" or "Revised" License
7 stars 1 forks source link

Slug renamer #2

Open dirkleas opened 6 years ago

dirkleas commented 6 years ago

Add plugin feature to rename changed slugs for situations where patches referenced plugins/modules by slug/etc. have been renamed by developer or comes in multiple bundles (e.g. free, pay). Make the rename feature smart enough to suggest correct names/values. Consider using sed-style editing syntax (e.g. standard mac/linux stream editor).

For example, Trummor2 comes in both Vult's free and pay bundles. If someone shares a patch based on the free bundle and you go to play it with only the pay bundle installed, it throws an error when you open the patch -- rackcli to the rescue...

rackcli --patch SevenModules.vcv --sed "s/VultModulesFree/VultModules/g"

Add more smarts by looking up Vult module options online and streamline to...

rackcli --patch SevenModules.vcv --fix

dirkleas commented 6 years ago

prototyped in src/python with usage rackcli fix SevenModules.vcv or if it's the last patch you had loaded in rack you can simply use rackcli fix. the algorithm uses a fuzzy algorithm for matching slug variants like the Vult example above