866 questions
-2
votes
0
answers
44
views
Winform Richtextbox Undo one character instead of all text
I have a MDI parent with few types of childs, a RichTextBox in each. In one MDI child, when I Press Ctrl+Z, ALL the text I wrote in this session is deleted. But in the second MDI child, Ctrl+Z deletes ...
-4
votes
1
answer
68
views
Android Studio undo action is not working globally
When i am doing Ctrl+Z it works only withing currently opened tab (file).
If i change file a.java then switch to file b.java in another tab and do another change then click Ctrl+Z only changes in b....
2
votes
1
answer
168
views
State Management with RxJS in Angular (Undo Action)
I am learning state management concepts in Angular and am building a simple application using pure RxJS for study purposes. I’ve created a shopping cart application where I can add and remove products....
2
votes
1
answer
113
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. ...
-2
votes
1
answer
191
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 ...
1
vote
1
answer
398
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 ...
0
votes
1
answer
72
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 (...
1
vote
1
answer
188
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
1
answer
85
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'...
3
votes
1
answer
97
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 (...
1
vote
0
answers
29
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() ?
2
votes
1
answer
204
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 "...
3
votes
0
answers
108
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 ...
2
votes
1
answer
392
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 (...
0
votes
1
answer
244
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
2k
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
95
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 ...
-2
votes
1
answer
281
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 ...
1
vote
2
answers
1k
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, ...
-1
votes
2
answers
445
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
votes
1
answer
81
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 ...
0
votes
1
answer
371
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 ...
7
votes
0
answers
784
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-...
-1
votes
1
answer
960
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 ...
3
votes
2
answers
1k
views
How to clear undo history in CodeMirror 6?
editor.clearHistory(); works in CodeMirror 5 I believe, but what about CodeMirror 6?