HerrKnarz / Playnite-Extensions

Collection of useful Playnite extensions. See Readme for details!
MIT License
14 stars 2 forks source link

[Enhancement] Link Utilities: Support regular expressions #63

Open chocolatechipcats opened 1 year ago

chocolatechipcats commented 1 year ago

Is your feature request related to a problem? Please describe. Currently, there's no way to position 'not listed' links in Sorting. This would help with that, but may also be useful elsewhere.

Describe the solution you'd like The option to use a regex instead of a simple match anywhere a pattern can be inputted.

For the above-mentioned sorting issue, I can put (Site1|Site2|Site3).

This can also be useful for pattern-matching in link renaming/removal.

Describe alternatives you've considered Right now, I have sorting rules for all the one-off sites just to get them into the right position. Being able to set a position for 'not listed' links would be useful.

HerrKnarz commented 11 months ago

Sorry for responding only now. An optional regex option for the pattern fields should be no problem. I'd add a checkbox to each row then to toggle if the pattern is a regex or not. But for the sort order that would mean making the link name field a pattern, too. As of now the name must match exactly. But I like the idea and I guess it should be doable. The whole enhancement will be a bigger change, though, so it could be a while since I have enough time to implement it.