undo

Photoshop Undo System

The question probably applies to drawing systems in general. I was wondering how the undo functionality is implemented in PS. Does the program take snapshots of the canvas before each operation? If so, wouldn't this lead to huge memory requirements? I've looked into the Command pattern, but I can't quite see how this would be applied to ...

How to undo an 'svn copy'

I've accidentally overwritten an old branch by copying trunk over it using 'svn copy'. More specifically, for every release, trunk is branched and kept as a tag, using: svn copy svn://machine/REPOS/trunk svn://machine/REPOS/tags/$RELEASENR But this time the value of 'RELEASENR' was that of an old existing branch instead of a new one. ...

How to undo changes in tfs coming from unmanaged workspace?

I have a workspace that is lost forever. I have some files checked out from this workspace. I want to unlock them but I can't. I tried to do: TF UNDO $/MyProject/MyFolder/MyFile.cs /WORKSPACE:LOST;user /s:http://mysite:8080 But I got this message: The workspace LOST;user is not on this computer. Run get (get all if edits were...

Flex Text Control Undo

I'm having trouble finding any resource for adding ctrl-z undo capability to a Flex RichTextEditor control (a lack it apparently shares with other Flex text controls). I'm baffled that it's not in the native forms because it's such a fundamental capability, available in even standard browser text controls I believe. Any mention of this ...

Disable undo for creation/deletion of NSManagedObject

In my Core Data model, I've got a relationship called listItems which links to several listItem entities, each with a stringValue attribute. I've created a control which is essentially a list of NSTextFields, one for each list item. The control is bound to listItems properly, and I've set it up so that pressing the return key creates a n...

Unable to undo removal in Zsh

I run at path/test rm -r * The tutorial says that I can undo the change by If one of these fancyeditor commands changes your command line in a way you did not intend, you can undo changes withˆ_,ifyou can get it out of your keyboard, orˆXˆU,otherwise. However, I did not get the files back by pressing Ctrl-x Ctrl-u or Ct...

Is it possible to revert an entire SVN repository?

I just did something dumb with my SVN repository, I accidentally imported a load of stuff into the root instead of into a subfolder. It will take me ages to clean up.... unless there is an easy way to do a global revert on the repo? The help file talks about reverting working copies but there is no working copy for a newly-imported item....

Undo journaling: focusing the control being undone

I'm writing an undo journal for my WPF data-entry screen, which will track changes across all the controls. When the user selects Undo, I want to not only revert the latest change, but put focus back in the control whose value is being reverted. I'm struggling with the best way to put that focus back. My ViewModel will be the part that ...

Read undo history in VBA

I have a fairly simple bit of VBA in Word 2003 that changes the document's font to an 'eco font' (long story), and brings up the Print dialog. When a user hits Cancel or OK, the code does an 'undo' to revert the change. The problem is, sometimes when I press "OK" to print the document, two actions need to be undone ('font change', and ...

Undo in WPF Bindings

How to provide an undo / redo using bindings in WPF? e.g. You implement a master-detail view with bindings. After editing your changes were saved automatically using binding. Then you want to undo the changes. Is there something ready-to-use in the binding for WPF? Does WPF provide some structures or interfaces for? This question is n...

Undo inside WPF M-V-VM, how does it fit?

In my previous projects, I have already implemented undo system in c++, and I know how it work. I am also aware of the Command pattern. I will be implementing a C#/WPF desktop application and would like to base my design on the M-V-VM pattern. The application will: be relatively a small project (2-3 weeks estimated work for 1 dev)...

Git undo last commit

I accidentally added the wrong directory containing my files instead of adding a .java file. I added the directory containing the .class file. How can I undo this action? ...

Undo Within Selection?

Is there a way to get an "Undo within Selection" feature in Visual Studio? If not, are there any editors that have this functionality? It just seems exceptionally useful, removing the need to undo x many times, copy, redo x many times and paste. Instead one could just highlight the region of interest and undo in that location... ...

Undo history broken in Eclipse?

Is Eclipse's undo history broken? I have been using 3.1, 3.2, 3.3, and now 3.4 versions for the last few years and was always able to undo only about 20-25 changes back in history. This nonsense has cost me some lost modifications countless times when trying to revert some recent changes (if you reply with "you should commit to svn eve...

Does UIApplication send a "Shake-to-Edit" notification in iPhone OS 3.0?

In iPhone OS 3.0, UIApplication allows you to set a applicationSupportsShakeToEdit flag. The documentation says "The default value is YES. Set the property to NO if you don’t want your application to display the Undo and Redo buttons when users shake the device." This is all great and it ties in to the new NSUndoManager class nicely. Ho...

handling history/change tracking in the DB and consequences on the BL

hi in the current application im working on the client requested that we will save history of every action that happended in the system and provide the ability to backtrack to the previous state of the information. for example: lets say that my app need to handle a storage-room and each user can add/update/delete/read (all CRUD) the inv...

How is VIM's undo tree used?

This answer says: Vim's undo/redo system is unbeatable. Type something, undo, type something else, and you can still get back the first thing you typed because Vim uses an undo tree rather than a stack. In almost every other program, the history of the first thing you typed is lost in this circumstance. This is the first I hear of ...

WPF TextBox Interceping RoutedUICommands

I am trying to get Undo/Redo keyboard shortcuts working in my WPF application (I have my own custom functionality implemented using the Command Pattern). It seems, however, that the TextBox control is intercepting my "Undo" RoutedUICommand. What is the simplest way to disable this so that I can catch Ctrl+Z at the root of my UI tree? I...

Implement data rollback in existing CRUD app

I have an existing CRUD app that I have been tasked with implementing "tomb stoning". I need a way to allow a user to roll a given page of data back to the previous state. Say I have First Name, Last Name, and Social Security Number on a page in this app. User A updates the Last Name field. Later, User B notices that the New Last Nam...

How to undo "git commit --amend" done instead of "git commit"

I accidentally amended my previous commit. The commit should have been separate to keep history of the changes I made to a particular file. Is there a way to undo that last commit? If I do something like git reset --hard HEAD^, the first commit also is undone. (i have not yet pushed to any remote directories) ...