Bug 77753

Summary: JJ: Find in composer doesn't allow to search regular expressions
Product: [Unmaintained] kmail Reporter: Stephan Binner <binner>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: wishlist CC: hirsch
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Stephan Binner 2004-03-16 12:18:57 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

The find functionality in the KMail composer doesn't support regular expression search/regexpeditor while the message viewer does. That's inconsistent. :-)
Comment 1 Falco Hirschenberger 2004-06-19 14:12:59 UTC
I investigated this inconsistency and found out that the search functionality in the KMComposeWin comes from a KMEdit widget, which is derived from KEdit.

What can we do now?
	* Implement the search dialog myself. Overriding KEdit's.
	* Extend KEdit's search dialog to support RegEx searches.
	* Use another editor component (will probably break much code).

Does anybody have another idea?
Comment 2 David Faure 2004-06-19 23:15:08 UTC
My personal preference would be to write an extended KEdit in kdelibs/kutils, and base
the find/replace functionality on KFind/KReplace there. They provide most of the functionality
needed for find and replace, including support for regexps.
This would of course be for the next release *after* KDE-3.3.

On the other hand, I suppose other developers would prefer a way to just use
any text-editor component (like katepart) in the composer? IIRC this was planned,
I'm not sure what's the status on that.

Comment 3 Falco Hirschenberger 2004-06-22 11:28:08 UTC
Then I think this is a bit too heavy to classify it as JJ ;-)
Comment 4 Thomas McGuire 2007-07-11 20:28:48 UTC
See also bug 65253.
Comment 5 Thomas McGuire 2009-03-20 00:27:57 UTC
Fixed in KDE 4.