SuperEdi

User: Guest

Search

Please use the
Bug Report Form
if you think you found a software defect.

Use the Contact Form
to send a personal message to Wolfgang.

RSS Feed RSS Feed

Other boards:
Juke
QBrowser
Raduga (English)
Song Requester

Combined undo

Posted on: SuperEdi

From Message

E. de Graaff

2006-12-28 16:23:24

Combined undo

I'm really happy with SuperEdi, and been using it for a while now. However, one thing has been bothering me for a while.

It seems that one undo level can contain multiple actions. However, this often contains too much actions. One time pressing undo affect multiple lines of code, which can be pretty annoying sometimes.
When editing a couple of lines, save the file and edit one other line, undoing that will revert all 3 lines. The last saved state cannot be reached anymore by undo/redo.

I don't know what seperates the undo levels from each other, but could this be more specific, like an edit per line or seperate when the cursor has moved (so that 2 edits on one line at different places would end up in 2 undo levels)? Or have a switchable option for this?

Thanks in advance and keep up the good work!

Wolfgang Loch

2006-12-28 19:53:33

Re: Combined undo

Can you please give an example where one undo level covers multiple actions?

By the way, if you want to revert to the last saved version, simply press the Refresh button or Ctrl+R or F5.

E. de Graaff

2007-01-03 11:15:42

Re: Combined undo

As an example, comment out 3 lines of sourcecode and press undo 1 time. Even if the lines aren't below each other and have other lines between them.
The expected (imo, and like wordpad for example) is when the cursor has moved, a new undo-level will be created.

Wolfgang Loch

2007-01-04 20:46:55

Re: Combined undo

You are talking about multi-line comments, such as /* ..*/ or <!-- ... -->, right?

E. de Graaff

2007-01-05 17:01:15

Re: Combined undo

It's not specificly about commenting, just about any modification. Commenting was meant as an example to achieve a reproduction of my point. It's just when you, for example, modify line 1516 and modify line 1550, and you want to undo the changes on 1550 but those on 1516 were okay, you have to pay very much attention to what it undoes. Especially when it's off-screen. Now I sometimes have to copy-paste or retype the modifications before the last one, those which weren't meant to be undone.

Wolfgang Loch

2007-01-06 22:02:46

Re: Combined undo

Ok, now I understand the problem. You type non-whitespace characters, then you change the cursor position and then you continue typing non-whitespace characters. In this case both typing operations are combined into one undo step.

This will be fixed in the next update.

E. de Graaff

2007-01-08 11:57:11

Re: Combined undo

Thank you for looking at it!

E. de Graaff

2007-01-30 20:54:58

Re: Combined undo

I see that it has been implemented in the new version, and it works superb! Thanks again!

Post a reply to this message: