Home Download Buy Blog Forum Support

Redo: Impossible to see redone changes.

Redo: Impossible to see redone changes.

Postby jordwalke on Wed May 28, 2014 3:10 am

I really love Sublime and would love to continue working on building out language support packages for it, but there has been an outstanding bug that makes it unusable for long editing sessions. There appears to be a rather critical bug with how Sublime implements redo. Sublime prevents you from seeing which changes are being played forward/backwards in the undo stack. If you've ever wanted to quickly go back to a previous version of the file to recall which changes you've made, you'll have a very hard time because when you press undo/redo and changes are spread out across a large file, there's no way to see the change that you're replaying. You can see the before/after states, but you really want to see the actual change being applied (not currently possible with ST3 or ST2).

Here's the correct behavior (that vim and other editors use):

UNDO: Pops the last change off of the history stack, and moves the moves the cursor to the location where typing of that popped off change began.
REDO: Pushes a change back onto the undo stack, and moves the cursor to the location where the typing of that pushed change began.


This has been brought up before http://www.sublimetext.com/forum/viewtopic.php?f=3&t=9802#p38901 (the bug has existed for quite some time) and I keep hoping that one of the updates will fix this. I would greatly appreciate a fix, as it would make the Sublime editing experience usable enough for extended use. Would it be a relatively straightforward fix?
jordwalke
 
Posts: 7
Joined: Wed May 28, 2014 2:58 am

Re: Redo: Impossible to see redone changes.

Postby jordwalke on Thu May 29, 2014 6:51 pm

How does this not irritate everyone who uses sublime?
jordwalke
 
Posts: 7
Joined: Wed May 28, 2014 2:58 am

Re: Redo: Impossible to see redone changes.

Postby qgates on Fri May 30, 2014 3:29 am

As much as I agree with your sentiments, I wouldn't call this a bug since ST's undo/redo functionality works as designed. What you're asking for is an enhancement that I favour but it's on a growing list. I find myself just alternating undo/redo to see what's happening and though it's not ideal it works OK for me most of the time.

The old E texteditor had a nice branching undo/redo with history view. A hybrid of that and the vim approach would be awesome; perhaps Jon has something in the pipeline but I'm not holding my breath and it's not highest on my personal wishlist.
qgates
 
Posts: 230
Joined: Mon Nov 05, 2012 4:33 pm

Re: Redo: Impossible to see redone changes.

Postby tito on Fri May 30, 2014 10:57 pm

Yes, redo is somewhat broken. I sometimes need to recover changes from other sources, beacuse redo stops working and I'm unable to recover the changed portions. The editor starts writing Y instead of redoing my changes.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 859
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: Redo: Impossible to see redone changes.

Postby tito on Fri May 30, 2014 10:59 pm

Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 859
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: Redo: Impossible to see redone changes.

Postby qgates on Sat May 31, 2014 1:54 am

Strange tito. I've on a few occasions "undone" way way back through edits, including multicursor ops and s&r, and redone them all back without a problem. But if there are use cases where redo breaks, then that really ought to be fixed.
qgates
 
Posts: 230
Joined: Mon Nov 05, 2012 4:33 pm

Re: Redo: Impossible to see redone changes.

Postby tito on Sat May 31, 2014 2:58 am

I cannot find a way to repro this, but basically:
I sometimes want to go back deep in history to see where and when I introduced something.. once I discover or find what I'm looking for, I just want to reapply all the changes with /redo/ .. well, sometimes I cannot redo. Not usefull information, but well, something that happens from time to time.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 859
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: Redo: Impossible to see redone changes.

Postby jordwalke on Sun Jun 01, 2014 7:57 am

qgates wrote:As much as I agree with your sentiments, I wouldn't call this a bug since ST's undo/redo functionality works as designed. What you're asking for is an enhancement that I favour but it's on a growing list. I find myself just alternating undo/redo to see what's happening and though it's not ideal it works OK for me most of the time.

The old E texteditor had a nice branching undo/redo with history view. A hybrid of that and the vim approach would be awesome; perhaps Jon has something in the pipeline but I'm not holding my breath and it's not highest on my personal wishlist.



I don't think I've done a great job explaining exactly what is going on, but it absolutely is a bug. I'm not asking for an improvement to the editor. Currently, it is absolutely impossible to tell which changes you've applied to a file by undoing and replaying them (when the changes occur across a large distance in the file). It's not that it's hard - it's impossible. No other editor has this issue. Not even the stock cmd+z, shift+cmd+z that comes with operating system text edit boxes.
jordwalke
 
Posts: 7
Joined: Wed May 28, 2014 2:58 am

Re: Redo: Impossible to see redone changes.

Postby jordwalke on Sat Jun 21, 2014 7:36 am

Here's another report from years ago. I don't see any comment from the developer on the issue. It would be great to fix this interaction. Everything else about sublime feels great.

https://sublimetext.userecho.com/topic/ ... ght-place/
jordwalke
 
Posts: 7
Joined: Wed May 28, 2014 2:58 am

Re: Redo: Impossible to see redone changes.

Postby jordwalke on Sat Jun 21, 2014 7:39 am

There are other reports and experiences where users describe not being able to comfortably replay history of their editing session:

https://sublimetext.userecho.com/topic/ ... -playback/

I believe these users are having poor experiences because of this bug, but it's very difficult for people to articulate why their experiences are poor and they may not even realize that this cursor issue is responsible for their inability to track changes.
jordwalke
 
Posts: 7
Joined: Wed May 28, 2014 2:58 am

Next

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 20 guests