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 344026 - Find - Replace
Find - Replace
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2006-06-06 15:44 UTC by Pete Morgan
Modified: 2006-06-18 09:00 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Screen shot of find/replace in Dreamweaver (96.38 KB, image/png)
2006-06-06 16:08 UTC, Pete Morgan
Details

Description Pete Morgan 2006-06-06 15:44:26 UTC
One of the features I like with Macromedia is the find-replace.

The "find" dialog has a "replace" button. If whilst finding I decide to replace, all I need do is click the button to bring up the extra functionallity without dismissing the dialog and opening another.
Comment 1 Pete Morgan 2006-06-06 16:08:58 UTC
Created attachment 66835 [details]
Screen shot of find/replace in Dreamweaver
Comment 2 Paolo Maggi 2006-06-06 16:19:19 UTC
In gedit 2.14 you don't need to dismiss the find dialog. If you press the replace button in the toolbar, the find dialog is morphed into the replace dialog.

BTW, we could improve the current behavior by managing the Ctrl+H accellerator while the find dialog is focused.

We could also add a simple button on the bottom left with a "Replace" icon.
Comment 3 Pete Morgan 2006-06-06 19:42:10 UTC
>>
We could also add a simple button on the bottom left with a "Replace" icon.
<<

That sound like a fantastic idea :-)
Comment 4 Paolo Maggi 2006-06-18 09:00:20 UTC
I have fixed the search dialog so that it is now able to handle the Ctrl+H accellerator when it is focused.

So now you can morph the search dialog into a replace dialog using Ctrl+H or pressing the Replace button on the toolbar (or search menu) 

Since the replace icon is already in the toolbar I don't see any need to have the Replace icon also in the search dialog.

Closing as FIXED.

-----


2006-06-18  Paolo Maggi  <paolo@gnome.org>

	Fixed bug #344026 – Find - Replace

	* gedit/dialogs/gedit-search-dialog.c (show_replace): new function
	(gedit_search_dialog_class_init): register the new signal "show_replace"
	and bind Ctrl+H to it

	* gedit/dialogs/gedit-search-dialog.h: new signal "show_replace"