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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

Implementing undo in a state-machine based application

I have an application whose core design is based on a state machine that uses one-way transitions. This design works well for most scenarios and required features; however the application requires an ...
Neta S's user avatar
  • 15
1 vote
1 answer
69 views

with excel vba code, how can return the cell it's previous state when deleting seleted option in the cell?

I have a simple concern about returning cell to its previous state (normally cell is including data validation list generated with DATA>DATA VALIDATION section) for a range of cells. I have a macro ...
PYC's user avatar
  • 13
0 votes
0 answers
6 views

Rollback in Flyway

I rolled back the current version and found status of that version has "Pending". If I use flyway migrate again, the rolled back version is executing and status changing to "Success&...
Subhash Thota's user avatar
0 votes
0 answers
10 views

Cannot Undo my temporary changes in Intellij Using Command+Z

I am facing some issue while reverting my recent temporary changes using command+z(Mac) in intellij idea I am not sure how i can resolve this? ** these are temporary changes not git commit one ** i ...
Welcome_back's user avatar
  • 1,255
0 votes
1 answer
38 views

Accidentally modified a file in gnuplot and closed the file. Is there any way to restore the file?

I didn't realize that gnuplot can modify files and somehow changed a file that represents a weeks-long simulation. I can't re-run the simulation and it's so large that there's no back-up. I expect I'...
Ant's user avatar
  • 753
0 votes
0 answers
23 views

How can I check what was the last deleted text to be reverted when performing an undo operation in a browser?

I am currently working on a text editor with the ability to add both plain text and cards, where cards can contain additional text. There is an issue related to the undo functionality (Ctrl+Z) ...
Samarth's user avatar
  • 31
3 votes
1 answer
70 views

UNDO statement releases available buffer within class instance

I've added the test codes down below. TestClass has BUFFER variable inside itself which is available after the execution of it's CONSTRUCTOR. Everything works fine until the code executes any UNDO or (...
W0lfw00ds's user avatar
  • 2,030
0 votes
2 answers
44 views

Is it possible to redo the files from explorer in VS Code?

I did 7-8 Ctrl+Z mistaken in explorer panel in VS Code and some files have been changed now. And it seems Ctrl+Y doesn't work in explorer to bring everything back again! I wanted to make sure if there ...
Hasani's user avatar
  • 3,563
0 votes
0 answers
17 views

Electron contents.undo() when the button is clicked?

I'm using electron-react-boilerplate, how to undo when button is clicked with contents.undo() ?
codingcat's user avatar
0 votes
0 answers
58 views

Why is my SwiftUI iPhone app with shake-to-undo undoing custom actions and TextField changes at the same time?

I'm building a SwiftUI iPhone app. I've set up some undo behaviour by listening for shakes on my main View and invoking the UndoManager methods, which sometimes have my own actions registered. Here's ...
Graham Lea's user avatar
  • 5,817
0 votes
1 answer
40 views

How do you check to see if the undo button is disabled using a word vsto in vb.net?

In my vb.net vsto addon for Microsoft Word, I am trying to check to see if the undo button in the quick access toolbar is enabled or disabled. If it is disabled, it means that the undo record list is ...
user7391836's user avatar
0 votes
1 answer
68 views

How do you list all items in the undo record using a word vsto in vb.net?

In Microsoft Word, as you type a document, items are added to the undo record: How can I list all items in the undo record through a vsto? For example, in the above picture it would return "...
user7391836's user avatar
0 votes
0 answers
67 views

I did the git clean -fd command and deleted everything

Please help me! I just f***ed up everything! I was working on a angular crash course project in visual studio and then wanted to commit my changes to git so i first wanted to add my git repo to the ...
Labi's user avatar
  • 1
3 votes
0 answers
65 views

Using Undo with CEdit and SetWindowText

In my derived CEditEx class I use: SetWindowText(strText); Works fine and the control is updated. But it does not support undo (CTRL + Z). If I manually type the change changes undo works. Is there no ...
Andrew Truckle's user avatar
1 vote
0 answers
92 views

Implementing undo/redo for existing application (C++/Multiplatform)

Long story short: A client wants an undo/redo functionality in an application that is already somewhat mature and never had this functionality planned. It does not use command pattern nor any other ...
styku's user avatar
  • 146
1 vote
1 answer
134 views

VS Code extension API to Undo changes on a non-active text editor

I'm writing a VS Code extension that opens a Webview adjacent to an existing text editor to visualize and edit an SCXML state chart. Changes in the webview cause the text document to be rewritten (...
Phrogz's user avatar
  • 297k
0 votes
1 answer
557 views

How to proper implement Undo Redo system in React using context and command pattern?

I'm trying to implement an UndoRedo system in my App. I'm using TypeScript and React. I want to use the command pattern to develop the system as I want it to be a global system for several commands ...
RrR2010's user avatar
  • 63
0 votes
1 answer
79 views

How do I create a Ctrl+z event on the canvas?

I am trying to make an 'undo' action like Ctrl + Z. But I really don't know how to make it. This is my code. I want to add a ctrl+z event, but I don't know what to do. const canvas = document....
oz527's user avatar
  • 1
0 votes
0 answers
14 views

To what extent can the undo button undo if we really try?

I am a conceptual artist and want to know if there’s any way possible that I can make a software who’s only function is to undo itself when a single act of creation is implemented. For example, if I ...
iaioa's user avatar
  • 1
-1 votes
1 answer
102 views

How to undo by code a SwiftUI swipe action on a List cell?

My app has a SwiftUI List with cells that can be swiped (leading, trailing). Problem: Say, a cell is swiped so that the buttons are visible. Then the app is de-activated in this state, e.g. by a ...
Reinhard Männer's user avatar
-1 votes
1 answer
254 views

How to undo action like ctrl+Z in azure data factory

I am new to azure data factory. By mistake I deleted for-each loop while developing pipeline. How can I do undo this ?
Vidya's user avatar
  • 5
0 votes
0 answers
116 views

Undo changes AFTER Macro has run (NOT undoing macro itself)

Using Office 365 Cannot undo any manual Actions in the xlsm spreadsheet. Macro is fine...DON'T need to undo macro actions, but hoping to find a way to undo any manual entries made AFTER macro has done ...
Sasha's user avatar
  • 1
0 votes
0 answers
35 views

Accidently ran `sudo chown root@root -R /.` instead of `sudo chown root@root -R ./`

I wanted to change tho permission of a file structure and accidently ran sudo chown root@root -R /. instead of sudo chown root@root -R ./ is there anyway i can undo that? I don't have a backup of my ...
One_Sleeve's user avatar
1 vote
0 answers
33 views

Shouldn't table.undo() clear any cell.isEdited() flag when the undo "undoes" a cell edit?

In Tabulator - when using the history module and - the function undo(): It seems that the cell flag isEdited() doesn't get cleared when the undo undoes a cell edit. I want to mark all edited cells in ...
Abeabe's user avatar
  • 21
-2 votes
1 answer
113 views

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

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 ...
Omer Can KAPLAN's user avatar
0 votes
1 answer
237 views

How to optimize undo/redo for canvas drawing in react

I'm implementing undo/redo functionality (with this hook) for html-canvas drawing on medical (.nii) images in react. These images are a series of images that represents slices stored in a ...
Herman Bjørnerud's user avatar
1 vote
2 answers
324 views

Ways to undo the commits of 2 months ago in Git after push the commits?

I saw the solutions on undo the last / last x commits in Git. What I want to know is how to undo the commits that are pushed 2 months ago. I want to undo just the commits in the middle of the commits, ...
JShobbyist's user avatar
4 votes
0 answers
286 views

Flyway Community: Does "Undo" migration filenames existing at all in "locations", cause "Unrecognized migration name format" error? Unhelpful stderr

I have a pretty simple question. On my Flyway Community repo, if I have any "Undo Migrations" (U1.1__description1undo.h2.sql, for example) example files simply existing at all in my "...
Sered's user avatar
  • 41
-1 votes
2 answers
259 views

Implement undo/redo button in JavaFX [closed]

Ive been scrolling and scrolling and i dont seem to find any solution. I am making a simple java fx program where i draw different shapes. The problem is that i dont know how to implement an undo ...
Haggen's user avatar
  • 7
0 votes
1 answer
204 views

WPF Undo/Redo Commands that require state to be undone

Context: I'm trying to implement undo/redo using the Command pattern and WPF. I have commands as properties of the ViewModel which manipulate the data. I bind to these commands in the View. (For ...
sjsmith96's user avatar
-1 votes
1 answer
52 views

JavaFX textarea - Ctrl+z not working after textArea.setText("...")

I observed that in JavaFX textarea, Ctrl + z (for undo operation) is not working after calling textArea.setText("..."). Before setText is called, the undo operation is working fine. Is there ...
Lavish Kothari's user avatar
0 votes
0 answers
137 views

Flyway Undo function not working for jenkins pipeline

I am using Flyway Enterprise Edition (unlimited schemas) 6.1.0. I am trying to undo flyway migration to a certain version. Created a config file and provided target flyway.target=90000. I am using ...
MCVSHarry's user avatar
1 vote
1 answer
87 views

Recyclerview list item vanishes after closing and restarting app. KOTLIN

I just implemented an undo function for a snackbar in my to do list app. Everything works perfectly until you close the app and open it again. Once it's opened the list item that was just restored/...
Khumo Mashapa's user avatar
0 votes
1 answer
159 views

How to implement undo swipe and reinsert recently deleted item KOTLIN

I have a to do list app and I have created a snackbar that shows up when a user swipes to delete an item. What I want to do is have the undo snackbar reinsert the item that was just deleted. Here's my ...
Khumo Mashapa's user avatar
-2 votes
1 answer
35 views

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 ...
Javier Alcina's user avatar
5 votes
0 answers
293 views

How do I disable the "undo code cleanup?" prompt in JetBrains Rider?

My team has configured ReSharper/Rider to automatically run code-cleanup every time we save. I save a lot, which means code-cleanup runs a lot. Every time I try to Ctrl+Z past a point where code-...
awshelleyBeckman's user avatar
0 votes
1 answer
23 views

I git pulled without saving changes made on local repo

I made changes on local repo, but forgot to commit the changes. I ran git pull and now I've lost the code I added on local repo. How do I reverse changes made on local repo after running git pull, or ...
Tsetsi's user avatar
  • 1
0 votes
1 answer
63 views

How do I force shift up on AutoHotKey?

I want to change Ctrl + Shift + Z to Ctrl + Y so I made the below script: ^+z::^y This script sends Ctrl + Shift + Y, which isn't quite what I want, so I changed it to: ^+z:: KeyWait LShift Send ^...
yakinikubento's user avatar
-1 votes
1 answer
379 views

Google Script: Cancel/revert input onEdit

I'm currently working on a pre-filled sheet, that is made available on Google Drive, for users to keep track of their personal data. As there are too many users and the data being personal, they ...
Thomas's user avatar
  • 1
0 votes
2 answers
1k views

How to undo deletion of code in Visual Studio Code

So I was working on a small project and accidentally deleted a large chunk of code. Is there any undo button or something so that I can undo this change?
user avatar
1 vote
1 answer
335 views

How to clear undo history in CodeMirror 6?

editor.clearHistory(); works in CodeMirror 5 I believe, but what about CodeMirror 6?
01AutoMonkey's user avatar
  • 2,555
4 votes
2 answers
886 views

Git Stash - Local Changes - Git Stash - Git Stash Apply - Undo

Need some help, I screwed up. Please reserve judgement. Alright, this is what I did. git stash made some changes to the code. git stash (again) git stash apply Is there any way I can get back to ...
SSK's user avatar
  • 51
0 votes
0 answers
71 views

Undo/redo image progress

I have a functionality that changes the picture, and there are two cancel/return buttons i wrote 3 functions for this add undo redo The problem is that when I press 2 times undo and then redo, my ...
Евгений Чепелев's user avatar
1 vote
0 answers
64 views

Swift - Best practice for only temporarily caching state of a custom object

In my macOS app the main object is a "Configuration", a custom object which holds a collection of other custom objects. The user can click an edit button to access an UI where they can ...
MassMover's user avatar
  • 529
0 votes
1 answer
576 views

Undo insert query in SQL Server

I ran an insert query on a table in SQL Server by mistake and 100 rows got inserted. I want to undo it but I do not have rollback.
top 5's user avatar
  • 1
0 votes
1 answer
347 views

Make undo button in recoil js

I am looking for implementing undo button, on my projects using recoil as state management, and i see this documentation, but i am not sure how to implement it. Can anyone tell me how to implement ...
Esa Kurniawan's user avatar
3 votes
1 answer
1k views

How to undo in Intellij IDEA replace in files?

In intellij 2022.1, I use Ctrl+Shift+R to bring up the Replace in Files window - it shows 100+ matches in 40+ files. The search string and the replace string differ in only one character, for example: ...
cb4's user avatar
  • 6,829
0 votes
0 answers
180 views

Undo and Redo Button in Kivy with Canvas

Yesterday i Completed my Kivy Projects of a simple paint app and i give it to one of my friend and he told me that if You add Two Undo and Redo Buttons Then Your Application will Look Good and it will ...
PRADDYUMN YADAV's user avatar
0 votes
1 answer
58 views

recover deleted child in firebase realtime database android

I need some help to undo deleted child, I already have the snackbar showing the undo onclick but I am not sure how to recover the child, I have it saved in ExpenseBackUp, but how do I get it back? any ...
Yeury De los Santos's user avatar
1 vote
1 answer
88 views

Making undo/redo work well with QTextDocument's and "replaceAll" operations

How do I make a single 'replaceAll' operation be a single step in QTextDocument's undo stack? It does not use QUndoStack, it has it's own. :(
Macke's user avatar
  • 24.9k

1
2 3 4 5
18