The way ZExpressions are currently represented in the Properties panel is a bit confusing because the "Expression" field looks like an editable box… but it actually isn't, it just serves as a trigger to activate Code Editor. This is extra confusing when the whole ZExpression is just one line, so the "Expression" really looks like it could be edited the same like "Description" (which is right above it and looks exactly the same).
How about… if instead of showing the first line in the "Expression" on the Properties panel, a "mini map"of the whole ZExpression was used? Clicking on the mini map would activate the Code Editor, same like clicking on "Expression" does now (with maybe Option-Click / Alt-Click for automatically putting the cursor at the position in the code at the same place where the mini map was clicked, otherwise the cursor is set at the beginning)?
So the "Expression" would look something like this:
I often wish to go directly to a particular place in a ZExpression and the current system "Expression field shows only the first line of code (which can't be edited directly despite looking the same as the field above it) for the whole ZExpression, click it to activate Code Editor, go to a particular place…" results in a bit of extra clicking. I think having a minimap would reduce the mousework and make it more obvious that the "Expression" field can't be edited.
ZExpression "minimap" instead of showing the first line only
Moderator: Moderators
Re: ZExpression "minimap" instead of showing the first line only
Or if the ZExpression were a bit bigger:
Re: ZExpression "minimap" instead of showing the first line only
Hi,
This is a good idea. It will have to go on the list of things to do maybe in the future, as I'm not sure how much work it would be.
This is a good idea. It will have to go on the list of things to do maybe in the future, as I'm not sure how much work it would be.