auto-group-tabs icon indicating copy to clipboard operation
auto-group-tabs copied to clipboard

Support subdomain substring wildcard

Open TryTryAgain opened this issue 9 months ago • 3 comments

Somewhat related to https://github.com/loilo/auto-group-tabs/issues/34 but not path rather subdomain substring related.

My example is the newly introduced AWS console multi-session support... They generate some random subdomain and that seems to change quite frequently. It would be amazing if auto-group-tabs could support this example:

012345678909-askjfe.us-east-1.console.aws.amazon.com 012345678909-feine31s.us-east-1.console.aws.amazon.com 012345678909-gveiou.us-east-1.console.aws.amazon.com 012345678909-vsft3as5.us-east-1.console.aws.amazon.com

with a single rule like 012345678909-*.us-east-1.console.aws.com

Is that possible? I know it's definitely not possible with the default match patterns but I wonder if that's something you can support in some other way using the extension.

TryTryAgain avatar Mar 21 '25 18:03 TryTryAgain

This is not currently possible, but I've lately been thinking about supporting regular expressions as an alternative syntax for matching URLs. That would solve your use case of course (if you are used to write regular expressions, that is).

loilo avatar Mar 21 '25 21:03 loilo

That would be an incredible addition. I love some regex 👍

TryTryAgain avatar Mar 23 '25 18:03 TryTryAgain

Came to this repo intending to open an issue for this exact feature and use case with AWS—glad to see I'm not the only one!

I'm currently working on a PR and it looks like it's coming together.

The PR adds a toggle button to enable Regex input and some other UI Tweaks. New and old functionally seems to be working as expected. Unit tests are passing and I updated the e2e tests as well. #57

Image

leirtac12 avatar May 15 '25 12:05 leirtac12