defold icon indicating copy to clipboard operation
defold copied to clipboard

UNDO in defold editor

Open edr17 opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe (REQUIRED): When I go back a number of UNDOs, eventually the UNDO is done in a part of the current document which is out of view. I then don't really know any more what text I am undoing. So the UNDO function becomes unusable for me - it's only usable if I can see what specific change in the text I am undoing.

Describe the solution you'd like (REQUIRED): I'd like the part in the code where the UNDO was performed, to automatically appear in view and perhaps be subtly marked in some way to draw attention to it, so I know what change in the code I am UNDO-ing. Sometimes that may be the same document, but in another location of the document which is currently out of view. So then the editor should to change the view to that section. Or it may be in another text file of the same project, in this case the editor should go back to that other text file and show the relevant portion of edited text on-screen.

Describe alternatives you've considered (REQUIRED): I'm just comparing to what I'm used to in other code editors. I only experience this issue in Defold Editor.

Additional context (OPTIONAL): Add any other context or screenshots about the feature request here.

edr17 avatar Mar 21 '23 04:03 edr17

It is correct that the undo (which is global across your project) does not focus the view on the change you undo. This can be quite confusing and we can hopefully in the future make sure the editor focuses the view on where a change was undone.

britzl avatar Mar 29 '23 09:03 britzl

To add to this one: I mistakenly moved a file in the assets panel and discovered that undo does not work for these cases. It would be awesome if it worked for moving files and such

f2l2pe avatar Aug 22 '24 18:08 f2l2pe