Questions tagged [undo]

Undo is a command in many computer programs. It erases the last change done to the document reverting it to an older state. In some more advanced programs such as graphic processing, undo will negate the last command done to the file being edited.

854 questions
-1
votes
2 answers

How does Google implement "Undo" in GMail?

I've read about how to implement Undo in web applications. There are several drawbacks to this light-weight approach on the client-side. Does anyone know how Google implements "Undo" in their apps, e.g. GMail? Is it a client-side implementation like…
awendt
  • 13,195
  • 5
  • 48
  • 66
-2
votes
1 answer

Git reset --hard at the beginning and there is no commit to return back

I just initialized .git folder to my project with git init command. It was a problem and I just wanted to make git reset --hard and try again. But reset --hard command deleted all the files that I haven't committed yet. Right now it is a empty…
-2
votes
1 answer

Undo Wordpress Mistake

How can I undo some mistakes in my Wordpress Webpage when I imported unwanted widgets, menus, etc... I am getting so frustrated I was ready to delete everything and start anew. I wish I could revert to a previous session but I can't find an option…
-2
votes
1 answer

Make undo button disabled in tkinter (python3.7)

I want to create an undo button that changes its state to disabled when it can't undo. I only want to know if there is a function that knows if the file is undoable or not.
B4ST14
  • 33
  • 7
-2
votes
1 answer

Undo changes in Paint/image editor

Assuming that paint lets its users undo changes, I wonder whether it's possible to redo those changes by any computer means after the initial file has been saved. Steps to reproduce: 1. Open a .jpg file in paint 2. Draw a line 3. Save as…
Yan
  • 1
  • 3
-2
votes
1 answer

How to undo , java

I just started with java and I have methods that support changes and that store pre and post change values and I have to be able to undo them. And sorry for the extra text, just want to be clear as much as I can be. I can't figure out how to store…
Teardrop
  • 9
  • 3
-2
votes
1 answer

How to undo several Git commands?

Any chance to undo any of the following lines: git rm cvs git rm cvs -r git reset HEAD --. git reset --hard HEAD git reset --hard git clean -df git status git rm --cached . git rm --cached git rm --cached -r git rm --cached -r --ignore-unmatch git…
David
  • 1
  • 1
-3
votes
1 answer

text based undo function in java

I'm trying to figure out how to get a undo function for a small maze game. First I worked out a way to do this by checking what the last direction was and just going back in the opposite direction. But this code was getting way too long since I also…
Joris
  • 1
  • 4
-3
votes
2 answers

Function to revert mysql statement

How can I implement a undo changes function in my php application, so if the user for example added a new member to a group, or deleted item a notification message will appear: The selected item have been deleted, undo delete action(link that…
Belal Almassri
  • 119
  • 1
  • 8
-3
votes
1 answer

Python - Undo script if script fails

Sometimes when I run a function in my python script and if the function gives me an output which is not desired, I need to undo this step and then try running the function again with different parameters. Is there a way that I can have the script…
Abdul
  • 79
  • 2
  • 7
-3
votes
1 answer

Allow reverse operation in undo only

I'm trying to implement simple Solitaire game. Now let's assume we have a class called SourceCardDeck which represents source deck of cards. This class has an ability to pop one card, but it doesn't have an ability to push card back (which is…
Mára Toner
  • 302
  • 2
  • 16
-3
votes
1 answer

Undo Button for a WordSearch app

I'm new to android and I'm having a hard time finding solutions to my problem on my app. My app is a wordsearch game that uses tapping on the tiles as an input. This is the code for the onClick() of the dynamic textviews on the…
soNice
  • 21
  • 1
  • 8
-3
votes
2 answers

Undoing sql scripts

I have a problem to solve which requires undo operation of each executed sql file in Oracle Database. I execute them in an xml file with MSBuild - exec command sqlplus with log in and @*.sql. Obviously rollback won't do, because it can't rollback…
user1284257
  • 27
  • 2
  • 2
-6
votes
2 answers

How I undo my last commit?

I accidentally rest my commit in git and I would undo the last commit are their any way to undo last commit in git . I want to undo the last rest .
1 2 3
56
57