867
questions
-1
votes
1
answer
38
views
UNDO in SQL workbench
i run a query to update the data the query gone wrong and data is updated not as per my desired output.
Now i want to get that previous data back.
what should i do?
I tried ROLLBACK function it didn't ...
0
votes
0
answers
36
views
WP - How do I undo "Restore this Revision" action
I accidentally clicked "Restore this Revision" button while checking the 4-year old version of main page of WordPress website. Before that, the latest version I had was from 2 months ago (...
2
votes
1
answer
54
views
VBA: column width adjustment sub causing "undo" of Excel to malfunction
could someone please comment on the following issue?
I have a sub that adjusts the column width to the text width using "AutoFit", except for column J which should have a fixed width of 80. ...
0
votes
1
answer
314
views
Undo logs are not truncating even the parameter is set to ON
we have configured the below settings in our configuration file.
--innodb_file_per_table=1
--innodb_undo_tablespaces=3
--innodb_undo_directory=/var/lib/mysql/
--innodb_undo_log_truncate=ON
--...
-2
votes
1
answer
59
views
how to remove a renamed file from last git commit? [duplicate]
I know how to
Remove files from last git commit
Remove a file change from a git commit
but what I want is to exclude the renamed file from last git commit, but retain anything else (as git mv get ...
0
votes
1
answer
428
views
Git undo force push to remote branch
I need to undo a force push to a remote branch, or apply the previous changes that were merged to the remote branch before the force push from my local.
This is a release branch. The origin release ...
0
votes
1
answer
148
views
Override browser "undo" key command in Javascript?
I'm creating an application with undo/redo functionality, and would like to utilize keyboard shortcut functionality to trigger this behavior, e.g. cmd+Z
Per the MDN documentation, it appears possible ...
1
vote
1
answer
67
views
Issues with implementing an undo feature with stacks in Java
I am relatively new to Java programming. I am trying to make an application that acts a budget calculator and I wanted to implement an undo feature where I could perform multiple undos in a row to ...
0
votes
0
answers
82
views
In Neovim, can I undo a lua function call that wrote to 2 different buffers at once with a single :undo command?
I wrote this lua function to manipulate "todo.txt" files. It is supposed to do the following:
Mark the task from the current line as "done" (i.e. prepend it with "x " ...
0
votes
0
answers
73
views
I tried editor.trigger('myapp','undo') but it's not working as expected
I tried the below code for undo operation, but it's not working as i expected
editor.trigger('whatever...','undo');
This line is reverting the changes but word by word.
For Example: I have added the ...
0
votes
0
answers
33
views
Add undo to a SortableJS list with nested list(s)
I have a single HTML list which may contain zero or more nested lists.
A nested list is never be more than one level down ie nested lists cannot contain itself nest a list.
Users can add/remove nested ...
0
votes
1
answer
44
views
Multiple Originators in Memento
I have been given code for a game. My assignment is now have button to save the state of this game and to restore it this saved state. In the code there is a Game Window and there is a Game Engine (...
0
votes
0
answers
98
views
Control-Z and Control-Y not working in CustomTkinter TextBox
I am using CustomTkinter to make my own application.
I have created a textbox in the program.
It lets me to copy and paste but not to redo or undo.
I have tried solutions online but they are for ...
0
votes
0
answers
80
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 ...
1
vote
1
answer
153
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 ...
0
votes
0
answers
46
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 ...
0
votes
1
answer
69
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'...
0
votes
0
answers
38
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) ...
3
votes
1
answer
88
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 (...
0
votes
2
answers
459
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 ...
1
vote
0
answers
24
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() ?
0
votes
1
answer
88
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 ...
0
votes
1
answer
160
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 "...
0
votes
0
answers
90
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 ...
3
votes
0
answers
93
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 ...
1
vote
0
answers
116
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 ...
2
votes
1
answer
300
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 (...
1
vote
1
answer
1k
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 ...
0
votes
1
answer
178
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....
-1
votes
1
answer
151
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 ...
-1
votes
1
answer
680
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 ?
0
votes
0
answers
212
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 ...
0
votes
0
answers
46
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 ...
1
vote
0
answers
61
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 ...
-2
votes
1
answer
209
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 ...
0
votes
1
answer
412
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 ...
1
vote
2
answers
805
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, ...
4
votes
0
answers
529
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 "...
-1
votes
2
answers
377
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 ...
1
vote
1
answer
406
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 ...
-1
votes
1
answer
78
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 ...
1
vote
1
answer
121
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/...
0
votes
1
answer
314
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 ...
-2
votes
1
answer
39
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 ...
7
votes
0
answers
578
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-...
0
votes
1
answer
25
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 ...
0
votes
1
answer
202
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 ^...
-1
votes
1
answer
756
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 ...
0
votes
2
answers
2k
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?
2
votes
2
answers
662
views
How to clear undo history in CodeMirror 6?
editor.clearHistory(); works in CodeMirror 5 I believe, but what about CodeMirror 6?