Page 1 of 1

Suggestion: Find + Count option

Posted: Wed Jun 28, 2023 9:59 pm
by vmars316
Find + Count option
Post by vmars316 ยป Wed Jun 28, 2023 3:41 pm

Greetings ,
I wish for the Find/Replace dialog , to add a COUNT (occurrences) .
I do my Html , Css , Js programming using Notepad++ .
And it has a COUNT (occurrences) Button .
It is very handy .
Currently , to get a Count with .pb , I have to dump my source.pb into Notepad++ , then press Count .

Re: Suggestion: Find + Count option

Posted: Thu Jun 29, 2023 6:30 am
by Mr.L
alternatively, you could use the "replace dialog" and type as search and replace text the string that you want to count.
Don't forget the option "case sensitivy" and/or "whole words only" and it will tell you how many occurances has been replaced.
But I have to admit, its's always a little bit scary to do it like that... :wink:

Re: Suggestion: Find + Count option

Posted: Thu Jun 29, 2023 10:28 am
by NicTheQuick
You could also add a feature request directly in the Github issues list or write that addition by yourself and make a Pull request: https://github.com/fantaisie-software/purebasic/issues

Re: Suggestion: Find + Count option

Posted: Thu Jun 29, 2023 3:36 pm
by AZJIO
For now, you can use FindAllReferences. In the header you will get the number of occurrences. To call I use Ctrl+Shift+D