-
-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve "Select Frame" #5303
Improve "Select Frame" #5303
Conversation
I didn't apply this to |
example aura
|
since recursive frame identifiers are "just strings" this change has a small chance of making booby traps:
i don't know how likely this is to ever actually happen, but i think we could head it off by teaching weakauras how to recognize recursive frame names in a better way (e.g. if frame selector enters recursive branch, then the anchor type is "SELECTRECURSIVEFRAME" or whatever instead of "SELECTFRAME") |
What do you think about making |
mhmm not \0 as it end the string, but you get the idea |
I personally think "." is fine, the clashes are imho pretty theoretical. And thus the breakage if we change the rules are also pretty remote. If we want to do it "perfectly" we'd introduce a escape character, e.g. \, add a Modernize that looks at the existing anchors, escapes any "." or "" found and then that's perfectly backward compatible. But that sounds like overkill. |
I agree with that |
@emptyrivers are you okay with merging this? Or do you think we should be more careful in doing this? |
if i truly cared about the edge case, i would've used the review type that blocks merging 😄 |
This allows for example to select Party1 default frame which has no name
_G["PartyFrame.MemberFrame1"] doesn't exist but _G["PartyFrame"].MemberFrame1 does