Zhuinden / simple-stack

[ACTIVE] Simple Stack, a backstack library / navigation framework for simpler navigation and state management (for fragments, views, or whatevers).
Apache License 2.0
1.36k stars 76 forks source link

Consider a method that finds scopes with Regex matcher #179

Closed Zhuinden closed 5 years ago

Zhuinden commented 5 years ago

Sometimes, you don't know the scope's name, because it has a parameter embedded into it.

Currently I take scopeTag as an argument for a bunch of things, but finding it is a bit manual.

It'd be nice if on top of findScopesForKey, there was a way to pass in a Regex matcher, that returns all scopes that match the regex.

Also, hasScope currently takes a String scopeTag, but it could take a Matcher.

Zhuinden commented 5 years ago

It can be done via getting the scopes for a given key, so eh