| Summary: | Find/Replace - List number of occurences | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Olivier Soares <oliviersoares> |
| Component: | search | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | julien.michot.fr, kde-2011.08, kwrite-bugs-null, mkyral |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Unspecified | ||
| Latest Commit: | Version Fixed/Implemented In: | 4.5 | |
| Sentry Crash Report: | |||
|
Description
Olivier Soares
2009-03-29 22:32:48 UTC
*** Bug 197629 has been marked as a duplicate of this bug. *** i agree that this should be possible. by the way, there is actually a (very non-intuitive) way to count the occurrences of a given string: 1) open the kate command line (F7) 2) type the command ":%s/foo/foo/g" That will display a message like "5 replacements done of 3 lines", meaning that "foo" occurs 5 times on 3 separate lines. if you only want "foo" alone, you can use the command :%s/\bfoo\b/foo/g". [explanation: '%' means all lines, 's' is substitute, '/' is used as a delimiter and "foo" is replaced by "foo". the last 'g' means global, i.e., that all occurrences on a line will be replaced. "\b" in the last pattern means word boundary".] *** This bug has been confirmed by popular vote. *** *** Bug 219898 has been marked as a duplicate of this bug. *** Bernhard implemented this for KDE 4.5. If you "Find All" or "Replace", the number of occurrences is shown. |