Love this, @noisneil. The change bars are brilliant.
Thanks so much for sharing!
BTW, did you consider implementing this as a submacro or subroutine? If this were to work, then a caller action could be added to the action favorites.
Not that you asked for suggestions, but I'd find these options to be helpful:
local_IncludePatternlocal_IncludePatterns: regex defining accessed variable to be included
local_ExcludePatternlocal_ExcludePatterns: regex defining accessed variables (or variables matching local_IncludePatternlocal_IncludePatterns) to be excluded
For complex macros that contain many variables, this would be especially helpful.
I did, but there are so few actions involved that I thought that users who don't understand how subs work might find this less intimidating. Download one thing... done. Maybe I was worrying over nothing, but I don't really see much benefit to it being implemented as a sub, particularly when the actions will be removed or disabled after testing.
Could you give me a use-case so I can get my head around what you're after? It sounds like the Search feature might cover the practical applications of trying to refine by variable names or values...?
I see your point. Likely prudent for most use cases.
Also, after thinking about this some more, I remember that when I was creating a macro with some overlapping features, I ran into an issue: if only passing %AccessedVariables% to the submacro, it's not trivial to retrieve the caller's variable values.
The goal would be to limit the number of reported variables, i.e., report a subset of %AccessedVariables% (applying the two regex's to the variable names).
I have some complex macros with tens of variables. When debugging, I'm often only interested in a few.
No offense if you don't want to complicate your simple, yet elegant, approach.
I think the term "regex" is throwing me off, as it's not the only way to do things. Am I right in saying that you'd like to limit the displayed variabled by matching strings, before they're displayed rather than after (with the Search field)?
With VIP - Variable Inspector Prompt (by @DanThomas), one can limit the scope by specifying individual variable names. You could do the same with regex patterns and in some cases it would make specification even easier.
For example, if your macro included the following six variables (among many more):
Ok I think I understand now. That may be a bit antithetical to the lightweight nature of this particular method, which is meant to be as simple as possible in terms of initial set up. Drop it in and you're good to go.