GNOME Bugzilla – Bug 530060
Have a "replace all" option in search and replace
Last modified: 2011-02-19 13:25:41 UTC
See subject
This options is there - choose "Search & Replace" and set action to "Replace all matches" on the target tab. Though we consider to add a menu item that does this automatically.
>> Though we consider to add a menu item that does this automatically. Oh please do! Search&Replace using anjuta is horrible and time consuming!
Created attachment 157832 [details] [review] Adds a "Replace All" Button to the Search-Replace Window. Attached a patch that adds a "Replace-All" Button even when in "Replace next match" mode. (Haven't removed the old "Replace All" mode from "Search Action" combo-box).
Review of attachment 157832 [details] [review]: Looks ok overall. I mean, search is horribly broken anyway and this patch cannot fix it but it probably makes things a little bit better. ::: plugins/search/search-replace.c @@ +1888,3 @@ +on_search_button_replaceall_clicked(GtkButton *button, gpointer user_data) +{ + SearchAction temporary = sr->search.action; Any reason to use a temporary variable here.
There is a replace all now in the inline search, that should be fine.