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.
824
questions
0
votes
0
answers
14
views
Undo and Redo Operation in android Studio is not working?
I created this two variables below just a moment ago ,and I have no
need of them now,
But I am Unable to delete them by doing Undo ,
I tried doing undo by going on Edit->Undo but it is ...
1
vote
0
answers
19
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 ...
0
votes
1
answer
38
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.
0
votes
1
answer
26
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 ...
-3
votes
0
answers
12
views
I accidentally committed the wrong files to Git but didn't push the commit to the server yet. How can I undo those commits from the local repository? [duplicate]
The only way seems to be to copy the edits in some kind of GUI text editor, then wipe the whole local clone, then re-clone the repository, then re-applying the edits. However,
This can cause data loss....
1
vote
0
answers
25
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: ...
1
vote
0
answers
27
views
How to undo a recyclerview item swipe with undo snackbar?
How do I implement an undo action Snackbar in Kotlin, after a user has swipe away a recyclerview item?
I want something like this
This is my code to swipe/delete a recyclerview item
override fun ...
0
votes
0
answers
12
views
How to fetch Mysql undo log infomartion like innodb_trx_undo
I want to get the undo log information but found innodb_trx_undo not exists。have any other tools can i use to anlaysis the undo log files?
mysql> select * from information_schema.innodb_trx_undo;
...
0
votes
0
answers
39
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 ...
0
votes
1
answer
28
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 ...
0
votes
0
answers
30
views
How to delete drawn lines and brush (circle) on image in Python?
I'm working on a program whitch draws a circle and lines on an image using event mouse leftbutton. The thing is I can do it but I don't know how to undo / redo after clicking and create the circle or ...
1
vote
1
answer
19
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. :(
0
votes
1
answer
31
views
Add and remove border when clicking on a button JS
hello I am struggling to use JS in order to make the buttons on my HTML page add a border to the button when it is clicked and to remove the border when it is clicked again. it works for the first 2 ...
0
votes
1
answer
101
views
How can we avoid corrupting lists when using Unity Undo.RecordObject?
It turns out that Undo.RecordObject is not a magic bullet solution for all undo situations. There are some changes to an object that can be accurately reverted thanks to RecordObject, but sometimes ...
0
votes
2
answers
33
views
Core Data automatic undo
Sorry if this has been already addressed (as always), but I couldn't find a clear answer so...
Circa OS X 10.7 (old stuff I know), a core data app that I was developing for the Mac had "automatic&...
0
votes
1
answer
51
views
How to undo a stack when the struct contains a char ** variable?
This code below is something like a candy crush game, where you pop similar letters in a cluster, then they'll disappear and you score. On main, I tried to play it one step ahead and then undo it, and ...
0
votes
0
answers
11
views
In Java for Undoable Edit Multiple edits and String won't split
So when I do an Undoable Edit, and try to create a String, it won't split/create a new line no matter what. I have tried all the \n and newline stuff.
0
votes
0
answers
12
views
react-painter add undo feature
I am using react-painter and I would like to add a feature to undo the last step. Is there any way how to do it?
This is how I am using it right now:
const canvasRef = useRef(null);
<ReactPainter
...
0
votes
0
answers
25
views
how to undo pivot_root
After having done pivot_root, the old root is preserved.
This is very fine.
The old root is preserved with all its running processes and their open files, etc.
Thus, in an emergency case, one can work ...
0
votes
0
answers
60
views
Using VS Code, Git-Lens, or another method, how do I explore (and possibly run) versions from my commit history to find/fix a problem?
Given the following:
I have a piece of code - one fairly complex file - that I am actively working on and I save/commit/sync often. Maybe even too often, but that's another story.
Assume my commit ...
0
votes
2
answers
629
views
How do I undo the local commits in Git? [duplicate]
I accidentally committed the wrong files to Git, but didn't push the commit to the server yet.
How can I undo those commits from the local repository?
The only way seems to be to copy the edits in ...
0
votes
0
answers
46
views
TFS undo command in power shell not working [duplicate]
I am using below command in power shell to undo any pending changes in my workspace at a specified path recursively
Set-Alias tf "$env:VS140COMNTOOLS..\IDE\tf.exe"
tf vc undo /workspace:...
0
votes
1
answer
68
views
Javascript onclick how to undo when clicked again
I'm creating a filter to search for your perfect shoe's by answering questions. Right now I've got a couple of questions, each with multiple answers. By clicking on an answer a variable gets edited ...
0
votes
0
answers
36
views
How to remove blur applied to an Image inside an ImageView with RenderScript?
I have a button on my image processing application that when clicked applies Blur effect to the image in the ImageView object. I achieved that using Android built-in class called ScriptIntrinsicBlur. ...
2
votes
1
answer
108
views
What would I have to add to this VBA Code to keep Undo Button working after it runs?
I was looking for VBA code so that any time I copy and paste text from anywhere into Excel, it will match the destination formatting. I found 2 different codes to do it:
Sub ...
-1
votes
2
answers
147
views
How to undo the last commit on GitHub?
I want to undo the last commit pushed to GitHub on the master branch of a repository, and make it so that it's as if this commit never existed and doesn't appear in the commit history.
How do I go ...
1
vote
2
answers
229
views
How to undo changes made from script on contenteditable div
Let's have contenteditable div. Browser itself manage undo on it.
But when additional content changes (or touching selection ranges) are made from script (in addition to user action) then it stops ...
1
vote
2
answers
61
views
Undo function using self made "deepcopy"?
I want to create an undo() function that undoes the last operation in python, so I just deepcopied the list before any modifications were made during whatever function to another list (I made a ...
2
votes
1
answer
239
views
HTML Input - Undo history lost when setting input value programmatically
I have an HTML input. When a user types in it, I've set up the 'input' event to handle updating the input to a filtered version of what the user typed (as well as updating selectionStart and ...
13
votes
2
answers
179
views
Examples of "undoable" applicative functors?
I declared a group on applicative functors. Judging by what we usually call "actions", it seems that such group would enable the action to be undone:
import Control.Applicative
class ...
0
votes
0
answers
107
views
Redo and undo do not work when 'current.value' of <textarea> is changed in React
I am making a custom editor through in React. Click the button on the custom toolbar in the editor to apply the markdown syntax.
The problem is that redo, undo don't apply. (including command + z)
I ...
0
votes
0
answers
25
views
How to undo open pul request github
I started a pull request and want to undo it.
How do I do that? I cannot find any undo button.
0
votes
1
answer
57
views
VSTO: About VSTO implementation undo operations
I started using VSTO recently and found that if I modified Excel using code, I could not undo it. Looked for many places but did not find a suitable solution. You have to figure out how to undo it. ...
1
vote
1
answer
90
views
Need some help making an undo button in Swift [closed]
I'm pretty new to Swift and iOS development, so I'm kind of stuck on this one problem. I made this app that changes the background color of an image view square whenever a button is pressed. The ...
1
vote
1
answer
63
views
How to resize the undo-tree-visualizer window?
I have been trying to automatically resize the undo-tree-visualizer window whenever it opens up in emacs. To fix this I have made a hook, the hook does resize the window however once the hook is ran ...
0
votes
0
answers
19
views
Implementing Undo method in DataGridView Via Escape Character
I have created a custom DataGridView EditingControl like in this example. It all works well and good, however I'm trying to implement an "undo" functionality via the Escape key.
I am saving ...
0
votes
0
answers
42
views
Is it possible to undo MinMaxScaler after datacleansing?
When I scaled my df with a MinMaxScaler. Is it possible to undo it after Data cleansing? Or what's the practical approach?
Thank you for your help
1
vote
0
answers
123
views
Is this a long-standing bug that's never been fixed in Undo class?
Take the following code:
var go = new GameObject("test");
Undo.RegisterCreatedObjectUndo(go, "Object created!");
Undo.AddComponent(go, typeof(BoxCollider));
When you open the ...
2
votes
1
answer
167
views
Should we use a decorator or a context manager to handle undo queues in Maya?
I know context managers and decorators are two completely unrelated concepts in Python, but both can be used to achieve the same goal. It can be sometimes confusing which one is the best practice to ...
0
votes
0
answers
150
views
Is there any way Flyway Undo As per Installed rank instead of version?
As per the current implementation flyway undo happens as per
Undo all migrations equal and above target version
In the reverse order of migration - (descending order of installed_rank).
Here I have ...
1
vote
0
answers
163
views
Python - Tkinter - Undo in a canvas [duplicate]
My code reads from a binary, converts the hex into images and disposes them onto a canvas.
I can click to a single tile on the canvas and change it properly. But I am now aware that I absolutely need ...
0
votes
0
answers
24
views
How to do Undo/Redo without states?
I'm working on a sample library instrument that uses KSP, which I doubt anyone here knows and is a pretty basic and limited language.
I'm trying to figure out how I could implmenet a undo/redo system ...
1
vote
0
answers
79
views
pgadmin 4 - cannot use select all and undo
I have used pgadmin 4 for months now.
but from about a month ago, suddenly on pgadmin 4 editor, I couldnt do ctrl + a (select all) and ctrl + z (undo).
I still can do other shortcut though like ctrl + ...
0
votes
1
answer
350
views
Eclipse Undo/Redo Binding Key Shortcuts Not Working
I am currently working with Eclipse Version: 2020-06 (4.16.0) on a Mac. When I go to Eclipse > Preferences > General > Keys the Undo and Redo shortcut bindings are set to Command Z and ...
2
votes
1
answer
69
views
Undo (not revert) historic local commit?
How can I undo a commit that should never have been made, when 17 commits have been made afterwards?
Background: a colleague in my team worked solo for a month, and now its time to merge their branch ...
0
votes
0
answers
50
views
Cannot undo changed keydown event after set customized event listener
Here is the demo. For example, I want to get a b after I key down a, like this:
const text = document.getElementById('text');
text.addEventListener('keydown', (e) => {
if (e.key === 'a') {
...
0
votes
0
answers
52
views
How to go back to initial state of a branch with git in eclipse?
I recovered code in Eclipse via git clone function.
I worked with a branch of the project and made some modifications (~20), now i realize I want to back to the initial state ( the moment I recovered ...
0
votes
1
answer
240
views
Is there a way to undo or revert to previous node_modules
I ran npm install to a project and faced multiple errors due to updated dependencies. Is there a way I can undo it and retrieve my previous node_modules folder and files?
1
vote
1
answer
1k
views
Flutter - Text undo and redo button
hi i have been searching the internet for how to create redo and undo buttons and connect them to a flutter TextField, but so far i haven't found anything. I hope someone knows how to do this, I hope ...
0
votes
3
answers
497
views
git squash changes for one file
I have several commits that do ineffective changes to a file but some of them are combined with relevant changes to another file. So I would like to just squash the changes to the one file. How can I ...