Bug 131157

Summary: find/replace regexp option: treat the document as one line
Product: [Applications] kate Reporter: Maciej Pilichowski <bluedzins>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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 ***