Feature Request: Undo Button

Post Reply
User avatar
Belgarath
Posts: 232
Joined: Fri Jul 26, 2013 7:19 am
Discord: macjabeth#7149

Feature Request: Undo Button

Post by Belgarath »

I think something that would save a lot of Mudlet users some frustration down the line is if there was an "undo" button, perhaps placed right next to the delete button in the script editor so that if something is *cough* accidentally deleted, you can click that magic button to bring it back. What are your thoughts on this?

User avatar
SlySven
Posts: 987
Joined: Mon Mar 04, 2013 3:40 pm
Location: Deepest Wiltshire, UK
Discord: SlySven#2703

Re: Feature Request: Undo Button

Post by SlySven »

Nice in concept but with the current spaghetti that is dlgTriggerEditor.cpp it would be hard to do currently IMHO. Don't forget the normal <Cntrl>-z undo combo will recover from typing something that just wipes out all the text you had accidentally left selected before entering the next word - provided you have not clicked or otherwise let the focus leave the script editor entry window (the mid-to-bottom right side one in the editor).

Part of the problems we have had with script content going AWOL in the past is the zeal with which we attempt to save what is in that window when you do move the focus away because the first save will probably have been wanted but if the window gets cleared ready for the next item to be put there and a second attempt is made to save the same data probably because of a different thing that happens when the focus is changed also triggering a "save" action then the now empty window is then saved AGAIN to the original item thereby nuking its intended contents... 8-(

User avatar
Vadi
Posts: 4901
Joined: Sat Mar 14, 2009 3:13 pm

Re: Feature Request: Undo Button

Post by Vadi »

I'm a fan, but the whole idea of undo makes it a little untrivial to impelement in any application unless you design for it from the start. Noted though.

Post Reply