Bug 201057 - Regular Expression Editor and Placeholders Missing from Search/Replace in Kate/Kwrite
Summary: Regular Expression Editor and Placeholders Missing from Search/Replace in Kat...
Status: RESOLVED INTENTIONAL
Alias: None
Product: kate
Classification: Applications
Component: search (show other bugs)
Version: unspecified
Platform: openSUSE Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-22 03:42 UTC by David Rankin
Modified: 2015-10-08 09:00 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Rankin 2009-07-22 03:42:34 UTC
Version:            (using KDE 4.2.96)
Installed from:    SuSE RPMs

The Regular Expression Editor is Missing from the kate search and replace dialog in kde4 kate. In kde3 kate/kwrite, the regular expression editor was part of BOTH the "Search" and "Replace" dialog boxes and was an invaluable tool for working with search queries in both. It provided immediate assistance with REs.

Further, the search/replace dialog is missing the ability to be moved out of the way so the entire editor window is available and not covered up by the search/replace dialog. The functionality of the kde3 search/replace dialog, as a completely detached dialog, allowed it to be moved entirely out of the way so searches, etc could be performed without intruding on the editor window at all.

This needs to be fixed.

The kde3 kate "Search" and "Replace" dialogs simply need to be restored in kde4 kate as an option that the user can select to change between the kde3 or kde4 search/replace dialogs based on the user's preference. The kde3 search/replace dialogs provide the needed RE editor and were much more efficient, user friendly and do not cover the bottom 8 lines of code.

The current search/replace functionality is a giant step backwards in usability and candidly looks like something that was hastily thrown together in order to say "yep, the search and replace editor for kde4 is done." That's not a slam, that is just the way it appears from someone works with a large number of text documents. Currently the kde4 search/replace has -- no regular expression editor, no placeholders, can't be moved out of the way, covers up 8 lines of my text and has an awkward tab order.
Comment 1 Matt Rogers 2009-07-22 03:52:59 UTC
It's hidden under the options section, but it is there.

A separate bug should be filed about the tab order.
Comment 2 David Rankin 2009-08-12 04:37:42 UTC
Matt,

    Take another look please. I might be doing something wrong, but the only thing hidden under options in my kate search/replace when regular expression is selected is:

<quote>
From cursor
Highlight all
Selection only
</quote>

See:

http://www.3111skyline.com/download/openSUSE_bugs/kde4/screenshots/kate-options.jpeg

I have been through every option and there is no way to open the RE editor. Ironically, I know that it is possible because I worked through the kde dev tutorial:

http://techbase.kde.org/Development/Tutorials/Using_KXmlGuiWindow

built the simple text window and on a lark, typed text into the application and hit ctrl+R. To my amazement, there was the old search and replace dialog, *detached* the way I like it, and *with* a small stripped down regular expression editor. See:

http://www.3111skyline.com/download/openSUSE_bugs/kde4/screenshots/kate-RE-editor-tutorial.jpeg

However, in my kate, there is *no* way to get this dialog. That's the bug. All I want is this dialog.

From the Kate Handbook, it says:

Regular Expression
If selected, the search string is interpreted as a regular expression. The Add button will be enabled and allows you to add regular expression items to the search pattern from a predefined list.

There is NO "Add" button!!

See:

http://www.3111skyline.com/download/openSUSE_bugs/kde4/screenshots/kate-search-replace-dialog.jpeg

Help! Please! I've reopened the bug. Thanks.
Comment 3 Jaromir Smrcek 2010-01-14 13:33:46 UTC
Another step back for KDE4, this really is unusable, not only the tab stop, but I cannot check the "replace all" option! And there is no regular expression editor, come on!
Comment 4 Fest 2010-04-25 20:39:06 UTC
Cann't find them too. So I presume it's or really well hidden or bug.
Comment 5 Dominik Haumann 2010-05-09 03:14:51 UTC
KRegExpEditor is still not completely ported to KDE4. Right now it is in KDE's playground module: http://websvn.kde.org/trunk/playground/utils/kregexpeditor/
Once it's ready, we can integrate it again of course.

Btw: Please only one issue per report. Thanks.
Comment 6 Christoph Cullmann 2010-05-09 11:38:22 UTC
You want extensions, thats fine. But search & replace works, there is a replace all, there are regex. For any stuff missing, we let this bug open as wish, for sure.
Comment 7 David Faure 2010-05-19 00:28:42 UTC
SVN commit 1128317 by dfaure:

Finally implement support for other back references than \0 in the find/replace dialog.
BUGS: 168226 125443
CCBUG: 201057


 M  +25 -16    findreplace/kreplace.cpp  
 M  +19 -4     tests/kreplacetest.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1128317
Comment 8 L_V 2010-08-23 22:29:17 UTC
regex is broken in Kate4.
Any idea what's going on since 2009-07-22 ?
Comment 9 L_V 2010-08-25 15:18:26 UTC
To be more accurate:
- regex ok in Kate 4:4.4.5
- regex broken in Kate 4:4.5.0b
Comment 10 Christoph Cullmann 2015-10-08 09:00:23 UTC
Dear user,

this wish list item is now closed, as it wasn't touched in the last two years and no contributor stepped up to implement it.

The Kate/KTextEditor team is very small and we can just try to keep up with fixing bugs. Therefore wishs that show no activity for two years or more will be closed from now on to keep at least a bit overview about 'current' wishs of the users.

If you want your feature to be implemented, please step up to provide some patch for it. If you think it is really needed, you can reopen your request, but keep in mind, if no new good arguments are made and no people get attracted to help out to implement it, it will expire in two years again.

We have a nice website kate-editor.org that provides all the information needed to contribute, please make use of it. For highlighting improvements our user manual shows how to write syntax definition files.

Greetings
Christoph