Search & replace should be one step in undo history
Reported by Michal Hantl | October 26th, 2010 @ 08:58 AM
I've just performed S&R that replaced 51 times.
Then I hit save, but now I see that
- my replacement was regexp (even though I used plain last time I
think) and
- it replaced stuff I didn't want to
No I say to myself "no problem", hit ctrl+Z and saw only one replacement go back.
I should be able to restore the previous state with just one ctrl+Z!
Due to shallow undo history, I need to fix all the other places by hand.
Comments and changes to this ticket
-
Steven Hancock October 26th, 2010 @ 01:02 PM
Was this using Replace All? My thoughts on this are that each individual Replace should probably be its own unique action in the undo history, but Replace All should be a single undo action. Should be an easy enough fix, I'll see what I can do about making that change today.
-
Steven Hancock October 26th, 2010 @ 02:14 PM
Fixed in commit e146e827448b140e9b0944d196290b141b4d513a
-
delisa October 26th, 2010 @ 02:51 PM
- State changed from new to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A programmer's text editor for Gnome.