Page 1 of 1

Search option: made easier "Whole word"

PostPosted: Mon Dec 19, 2011 2:44 pm
by JvNoort
Hello,

I agree, Servoy isa great IDE but, can u please keep simple stuff.... whell SIMPLE !
LIke searching for something:

If a developer has specific needs yes, do make tabs on Java Search, Java sript search and so on
But where is my plain and simple: search whole word only ???

This is implemented on every platform like say 25 jears or so :twisted:
So why is this not obvious in servoy? ( I can't find it)

Pls, find attached a very simple dialog that has done the job for me in - yes, decades - whell at least 99% :o
So? is it just me or ....

Re: Search option: made easier "Whole word"

PostPosted: Mon Dec 19, 2011 3:00 pm
by ROCLASI
What is so complex in this dialog (via command-h/ctrl-h) ?

Servoy Search Dialog.png
Servoy Search Dialog.png (57.09 KiB) Viewed 7893 times

I love Servoy (it's actually Eclipse) search. But that's me.

Re: Search option: made easier "Whole word"

PostPosted: Mon Dec 19, 2011 3:04 pm
by JvNoort
Hello Robert,

Whell, so where in this dialog can i set [Find whole word only] ? ( or something equivalent..)
Regards, Jan

Re: Search option: made easier "Whole word"

PostPosted: Mon Dec 19, 2011 3:11 pm
by ROCLASI
Hi Jan,

Ah yes, you can only do that in the current editor via command-f/ctrl-f. Not over all files, unless you use regex I guess.
Do you need it over all files ?

Re: Search option: made easier "Whole word"

PostPosted: Mon Dec 19, 2011 3:24 pm
by JvNoort
Yes I DO!

Do you never want to know, 'did i accidentally assign a var twice? ' or something like that...

I often go thru files with search option [Whole word Only] and /or search for string: "myvar =" - YES in all files :mrgreen:
How to make this happen in Servoy

e.g i want to find: 'MYCAPITAL' not MYCAPITALsomethingElse, in all files, what do u suggest?
Kind regards, Jan

Re: Search option: made easier "Whole word"

PostPosted: Mon Dec 19, 2011 3:34 pm
by ROCLASI
Hi Jan,

Then check the Regular Expression checkbox and wrap your search criteria in a \b. So searching for MYCAPITAL you would enter \bMYCAPITAL\b.
This searches for a whole word only.

Hope this helps.

Re: Search option: made easier "Whole word"

PostPosted: Mon Dec 19, 2011 6:31 pm
by JvNoort
It does,

Thanks for the help Robert,

Maybe until next camp :-)