As usual, this is great!
I’ve been playing with it for a while, tried it with some lengthy macros, and I haven’t noticed any hit on performance.
There are, however, a couple of issues that I noticed:
Variable (but not function) names with underscores are currently ignored:
Variables and functions that are capitalized need a case-sensitive cue (unlike built-in functions):
Finally, with these features up and running, I see an oportunity for a feature request:
Could it be possible to also list all the custom additional functions?
These can be loaded using
Then, once added, you can inspect their code with
custom_functions = call(ij.macro.Interpreter.getAdditionalFunctions)
I use them quite often, and have them to automatically load at startup from a custom folder. As I keep adding new ones, it is not unfrequent to forget their actual name (or the order of the parameters), so I even made a custom function to list all the custom functions (and doc lines). Having them properly listed in autocomplete would come really handy.
Thanks again for all the good work and effort you’ve put into this amazing feature!