Bug 139334 - Kate's find doesn't match newlines
Summary: Kate's find doesn't match newlines
Status: RESOLVED DUPLICATE of bug 36803
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-28 22:49 UTC by Willie
Modified: 2007-01-16 20:43 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 Willie 2006-12-28 22:49:31 UTC
Version:           2.5.2 (using KDE 3.5.2, Kubuntu Package 4:3.5.2-0ubuntu18.1 dapper)
Compiler:          Target: i486-linux-gnu
OS:                Linux (x86_64) release 2.6.18-gg13-mixed64-32

Do Find, fill in text to find as "\n" (without the quotes), check regular expression, and nothing gets matched, even though the document has plenty of newlines. This is on Kate 2.5.2.
Comment 1 Matthew Woehlke 2007-01-03 18:28:30 UTC
That's because kate's find only works on single lines. If you need to match the end of a line, use '$' instead. Otherwise this is a duplicate of bug 36803.
Comment 2 Willie 2007-01-05 17:45:56 UTC
Hello Matthew, 

Thank you for the reply. I just tried your suggestion, and matching for "$" can't replace the EOL with another character (it would be even nicer if there was a regexp for \n, \r\n, and just "EOL", whatever the file format happens to be). Here's a use case: replace all EOLs with commas (perhaps followed by one space), make some edits, and replace the commas (maybe comma+space) with EOLs. Can Kate do this? Thanks.





----------------------------------------
[bugs.kde.org quoted mail]
Comment 3 Matthew Woehlke 2007-01-06 00:03:47 UTC
Not currently. You want multi-line matching, ala bug 36803. Therefore you should reassign your votes and someone (you?) should close this as a duplicate. Or provide information on how this is not a duplicate. :-)
Comment 4 Nick Demou 2007-01-08 22:04:53 UTC
This is a dupe of a 2002 bug report with 65 votes [1] 
What puzzles me is that the kate handbook [2] mentions that \n matches a new line. 

[1] http://bugs.kde.org/show_bug.cgi?id=36803
[2] http://docs.kde.org/stable/en/kdebase/kate/kate.pdf
Comment 5 Willie 2007-01-10 03:21:44 UTC
This is indeed a dupe of bug (feature?) 36803.
Comment 6 Anders Lund 2007-01-11 21:51:42 UTC
On Monday 08 January 2007 22:04, Nick Demou wrote:
> What puzzles me is that the kate handbook [2] mentions that \n matches a
> new line.


Could you link to the relevant section of the HTML version of the docs at 
docs.kde.org?

And, I *did* fix regex search to do this at some point. But there was a 
regression :(

-anders
Comment 7 Matthew Woehlke 2007-01-16 20:43:12 UTC
re-open to re-close as a duplicate of bug 36803
Comment 8 Matthew Woehlke 2007-01-16 20:43:27 UTC
*** This bug has been marked as a duplicate of 36803 ***