Bug 131157 - find/replace regexp option: treat the document as one line
Summary: find/replace regexp option: treat the document as one line
Status: RESOLVED DUPLICATE of bug 64910
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-21 12:20 UTC by Maciej Pilichowski
Modified: 2007-04-20 22:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Pilichowski 2006-07-21 12:20:11 UTC
Version:            (using KDE KDE 3.5.3)
Installed from:    SuSE RPMs

Such feature (option directly at find/replace dialog) would be useful for several reasons:
* searching phrase "A B" when you are not if it is "A\nB" exactly
* replacing newline characters -- I can match "A$", but what I want to replace newlines with spaces, then I could set "(A)\n" replace to "\1 ".

The only "problem" which such feature is to ensure Kate works only with \n internally, not \r\n, or anything else.
Comment 1 Dominik Haumann 2006-07-30 11:08:28 UTC
Kate works with \n internally.
Kate internally is linebased, which is why treating the whole document as a single line is not possible so far.
This is related to the wish "search & replace over multiple lines".
Comment 2 Matthew Woehlke 2006-07-31 18:28:49 UTC
Of course, replacing '(A)\n' with '\1 ' would also require Bug 127765 / Bug 45529 to be fixed.
Comment 3 Matthew Woehlke 2006-07-31 22:22:38 UTC
Oh... I take that back, looks like that's what "placeholders" are supposed to do? How on earth did we get the harder-to-implement part of regex-escapes in the 'replace' text and not the simple parts?
Comment 4 Matthew Woehlke 2007-04-20 22:55:35 UTC
*** This bug has been marked as a duplicate of 64910 ***