Featue: Count (In Find/Replace)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
SniffTheGlove
Enthusiast
Enthusiast
Posts: 122
Joined: Sat Nov 19, 2011 6:51 pm

Featue: Count (In Find/Replace)

Post by SniffTheGlove »

I would like to propose an addition to the Find/Replace Dialog

A button that will find reside in line with the other buttons with the function to display a message requester with the COUNT of all the occurrences of the string typed in the "Search For" text field.

For example Notepad++ has this feature and is very handy as sometimes one does not need to do find a string but would like to know how many times this string is present in the actual code.
akj
Enthusiast
Enthusiast
Posts: 668
Joined: Mon Jun 09, 2003 10:08 pm
Location: Nottingham

Re: Featue: Count (In Find/Replace)

Post by akj »

A crude workaround is to replace the string by an identical string with the 'Case Sensitive' flag set. Then the 'Replace All' button will show the required count.
Anthony Jordan
Post Reply