Enable Undo in various places where it now isn't enabled, for example, the calculation dialog
Actually, there is hidden undo in calculation dialog (CTRL+Z), but I agree it should be in Script Workspace and with dedicated buttons.
Yes, please!!!!! Specifically for the calculation editor, and even more specifically, right after I have pasted text into the calculation editor, such that it will revert to the text that I just replaced (and not to the original calculation, as reported in the "report issue" thread, Undo in the calculation editor undoes ALL of my changes, not just the last one)
Here's the scenario that gets me swearing up and down at FM on a regular basis:
I am editing a complicated calculation in the calculation editor (e.g. in Script Workspace, define field, etc.) and I'm pasting something into the calculation, but my heavy fingers press on the "A" after pressing "Cmd" and before "V", resulting in selecting the entire calculation before pasting the desired text, instead of inserting it at the cursor point. If I click "Undo", it undoes all edits.
What makes the calculation editor situation particularly insidious is that:
- I need to use the FM calculation editor, rather than an external text editor, to autofill the field and function names as I type;
- When making a lot of complicated edits to a calculation, I can't save (i.e. by clicking OK and closing the calculation editor then reopening) until I have finished ALL the edits or else I get a calculation error.
In the thread referenced above, RickWhitelaw said, "The calcution editor is not a text editor in that it must evaluate your calc as you exit the editor. A standard text editor will not correct your mistakes in a calculation. I believe the way undo currently works is expected behavior. It reverts back to the last committed version of the work."
In response to Rick's comment: The evaluation happens as you exit the text editor. This is not about undoing after exiting the text editor, it is after making a major typo while working in the text editor. After undoing whatever the last text change was, when the user attempts to edit, the evaluation still occurs (and helpfully identifies where the evaluation fails, to boot). The current Undo/Cmd+z behaviour, i.e. undoing all edits, is redundant to the "Cancel" button on the Calculation Editor, and could be better put to a different purpose (i.e. undoing only the last change).
While it would be nice if the calculation editor could allow more undo steps than just one, I would prefer if at least I could undo the last one without losing all of my unsaved changes.
I try to keep BBEdit or TextMate open to occasionally copy and paste my calculations as I'm working on them. I know it's not the best solution to the issue that we all wish FMI would address, but I've been burned so many times by what you describe that I now do it out of self preservation.
Hope this suggestion helps!
Retrieving data ...