audio-band icon indicating copy to clipboard operation
audio-band copied to clipboard

Feature suggestion: Regex replace for text label tags

Open mendelsimon opened this issue 5 years ago • 1 comments

I think it would be a nice feature to be able to perform a regex replacement on text label tags.

For example, it's a bit annoying when the song title is something like "Song (feat. Artist with long name)". It would be nice if I could do a regex replace on the song tag, perhaps like {/\(feat.+//song}. Another use case is truncating titles to a given length, e.g. {/^(.{50}).+/$1/song}. One more use case is if I want to replace an artist's name with their initials: {/(\S)\S*\s?/$1. /artist} (only works if the regex global flag is enabled).

mendelsimon avatar Mar 06 '19 00:03 mendelsimon

Sounds like a cool idea. I'll play around with it when I get do a pass over text labels.

dsafa avatar Mar 06 '19 01:03 dsafa