After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 530060 - Have a "replace all" option in search and replace
Have a "replace all" option in search and replace
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: plugins: search
SVN TRUNK
Other Linux
: Normal normal
: ---
Assigned To: Anjuta maintainers
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2008-04-26 12:51 UTC by Jaap A. Haitsma
Modified: 2011-02-19 13:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Adds a "Replace All" Button to the Search-Replace Window. (7.03 KB, patch)
2010-04-03 18:22 UTC, Dragos Dena
reviewed Details | Review

Description Jaap A. Haitsma 2008-04-26 12:51:22 UTC
See subject
Comment 1 Johannes Schmid 2008-04-26 13:06:02 UTC
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.
Comment 2 Liran Nuna 2008-05-06 20:25:06 UTC
>> Though we consider to add a menu item that does this automatically.

Oh please do! Search&Replace using anjuta is horrible and time consuming!
Comment 3 Dragos Dena 2010-04-03 18:22:49 UTC
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).
Comment 4 Johannes Schmid 2010-08-11 12:00:20 UTC
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.
Comment 5 Johannes Schmid 2011-02-19 13:25:41 UTC
There is a replace all now in the inline search, that should be fine.