Hi, Just another feature suggestion. Use case:
I've been making some changes in a source file. I've been making the changes in two locations in the file in parallel, trying to keep them roughly in sync as I make the changes. When I get to the end, I notice that there was a simpler set of changes for one of the two locations.
I'd like to be able to select a region of text and 'undo in selection'. It is just like normal undo, but it skips over commands in the undo list that don't affect the selection and only undoes commands that do affect the selection. (For bonus points, the 'skipped' undo commands could be left in the undo queue, so if I start using normal undo then they start being undone.)
I suspect that this isn't a particularly common request, so I don't really expect it to ever be implemented, but I thought it was better to mention the idea than not.
Be well,
Will :-}
On Feb 8, 2007, at 6:21 PM, William Uther wrote:
Hi, Just another feature suggestion. Use case:
I've been making some changes in a source file. I've been making the changes in two locations in the file in parallel, trying to keep them roughly in sync as I make the changes. When I get to the end, I notice that there was a simpler set of changes for one of the two locations.
I'd like to be able to select a region of text and 'undo in selection'. It is just like normal undo, but it skips over commands in the undo list that don't affect the selection and only undoes commands that do affect the selection. (For bonus points, the 'skipped' undo commands could be left in the undo queue, so if I start using normal undo then they start being undone.)
I suspect that this isn't a particularly common request, so I don't really expect it to ever be implemented, but I thought it was better to mention the idea than not.
Be well, Will :-}
IMHO, the current state of affairs with regard to undo really … stinks. (yay censorship!)
Not just TextMate, but most applications have really REALLY terrible undo systems. Some people are actually innovating in this space. The e editor http://www.e-texteditor.com/ for example has a really stinking sweet (looking, since I haven't actually used it) system. That editor actually manages all of the edits and lets you go back in time for the whole document or just a section and keep the entire backward AND foreward history preserved across edits and saves and closing and reopening the file.
I really really want this functionality in TextMate.
I really want to just close the document or quit the app and come back a week later and still have my full undo history.
Currently this is not doable with the current bundle system. I have investigated linking into the preview window since it can actually run a command every time you make an edit, but the limitations of this system are just too great to bother with it. It might be doable with a plugin, i have no clue.
I think we're just going to have to wait for Allan to open the door to this sort of thing, and I really doubt that it's going to be before TextMate 3.0. I'm sure the stuff in 2.0 will happily distract me from being too annoyed about it for now.
thomas Aylott — design42 — subtleGradient — CrazyEgg
I've already filed a feature request on preserving undo history. I suggest adding a description of this more robust functionality to that request.
http://macromates.com/ticket/show?ticket_id=F57E8A56
On 8 Feb 2007, at 23:43, subtleGradient / Thomas Aylott wrote:
On Feb 8, 2007, at 6:21 PM, William Uther wrote:
Hi, Just another feature suggestion. Use case:
I've been making some changes in a source file. I've been making the changes in two locations in the file in parallel, trying to keep them roughly in sync as I make the changes. When I get to the end, I notice that there was a simpler set of changes for one of the two locations.
I'd like to be able to select a region of text and 'undo in selection'. It is just like normal undo, but it skips over commands in the undo list that don't affect the selection and only undoes commands that do affect the selection. (For bonus points, the 'skipped' undo commands could be left in the undo queue, so if I start using normal undo then they start being undone.)
I suspect that this isn't a particularly common request, so I don't really expect it to ever be implemented, but I thought it was better to mention the idea than not.
Be well, Will :-}
IMHO, the current state of affairs with regard to undo really … stinks. (yay censorship!)
Not just TextMate, but most applications have really REALLY terrible undo systems. Some people are actually innovating in this space. The e editor http://www.e-texteditor.com/ for example has a really stinking sweet (looking, since I haven't actually used it) system. That editor actually manages all of the edits and lets you go back in time for the whole document or just a section and keep the entire backward AND foreward history preserved across edits and saves and closing and reopening the file.
I really really want this functionality in TextMate.
I really want to just close the document or quit the app and come back a week later and still have my full undo history.
Currently this is not doable with the current bundle system. I have investigated linking into the preview window since it can actually run a command every time you make an edit, but the limitations of this system are just too great to bother with it. It might be doable with a plugin, i have no clue.
I think we're just going to have to wait for Allan to open the door to this sort of thing, and I really doubt that it's going to be before TextMate 3.0. I'm sure the stuff in 2.0 will happily distract me from being too annoyed about it for now.
thomas Aylott — design42 — subtleGradient — CrazyEgg
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Am 09.02.2007 um 00:21 schrieb William Uther:
[…] I'd like to be able to select a region of text and 'undo in selection'. It is just like normal undo, but it skips over commands in the undo list that don't affect the selection and only undoes commands that do affect the selection. (For bonus points, the 'skipped' undo commands could be left in the undo queue, so if I start using normal undo then they start being undone.)
I second this.
I suspect that this isn't a particularly common request, so I don't really expect it to ever be implemented, but I thought it was better to mention the idea than not.
Niko.
Wow. This functionality in the e editor seems wonderful. I also second the suggestions in the thread.
Also, the idea of keeping a log of the file history seems great (of limited use without undo possibilities, but still great). This could be done in a bundle, one could modify the save command in order to keep a log and then show the history nicely formatted in a HTML window with links to earlier versions. What I like most is the visual representation of the modification timeline.
Piero
On 08/02/07, William Uther willu.mailingLists@cse.unsw.edu.au wrote:
Hi, Just another feature suggestion. Use case:
I've been making some changes in a source file. I've been making the changes in two locations in the file in parallel, trying to keep them roughly in sync as I make the changes. When I get to the end, I notice that there was a simpler set of changes for one of the two locations.
I'd like to be able to select a region of text and 'undo in selection'. It is just like normal undo, but it skips over commands in the undo list that don't affect the selection and only undoes commands that do affect the selection. (For bonus points, the 'skipped' undo commands could be left in the undo queue, so if I start using normal undo then they start being undone.)
I suspect that this isn't a particularly common request, so I don't really expect it to ever be implemented, but I thought it was better to mention the idea than not.
I've mentioned it before, but I used Eclipse for a few weeks to try it out about a year ago. It has a wonderful feature where it constantly diffs your unsaved file against the saved version. The line colours are shown in the margin, and you can right click on any of them and undo just the changes to that line (or just view the changes). It also has the side effect of showing you which lines you have changed.
Sequential undo is a problem that should have been solved a decade ago. When you have been changing two areas of code and need to undo changes to just one of them, and you find yourself copying one, undoing all the changes, then pasting it back in, you know there's something significant wrong with the editor you are using.
Ed