xsharp.eu • Xide search
Page 1 of 2

Xide search

Posted: Fri Nov 08, 2024 7:40 am
by Horst
Hello

A little request :-)

Sometimes i like to search in the code like -> #Objectdat+put+sina

Horst

Re: Xide search

Posted: Fri Nov 08, 2024 9:09 am
by Chris
Hi Horst,

Sorry, I did not understand what you mean. Can you please give me an example?

Re: Xide search

Posted: Fri Nov 08, 2024 9:43 am
by FFF
I suppose, he wants to "OR" some search terms.
What should be possible, if one uses the "Regex" checkbox (what i never tried, hadn't noticed this option is available...)

Re: Xide search

Posted: Fri Nov 08, 2024 10:52 am
by Chris
Hi Karl & Horst,

Ah right thanks, in that case, that's what regional expression searching is for. If you don't want to learn how to construct regional expressions (I don't and don't want to!), that's one of the few usages of AI that I like, you can ask it "Get me a regional expression that searches for 'abc' and 'test'" !

But I see in XIDE I have not included regional expression support for regular search, that's only available in Search In FIles (the "Reg Exp" checkbox). You can use that and select for the option "Search In" only "Current File".

Re: Xide search

Posted: Fri Nov 08, 2024 2:22 pm
by Horst
Hello Chris

How is the syntax to search ? i tried ' '#Objectdat .and. put .and. sina' in the searchfield and others.

you said only in the current file. i like to search in the whole project. So i can see , where i am using a database field (as example)

Horst

Re: Xide search

Posted: Fri Nov 08, 2024 4:08 pm
by FFF
Horst,
first: The "regex" search is ONLY implemented für "Find in Files", not in "Find" - so, good for you.
second: #Objectdat .and. put .and. sina'
It's unclear, what you want to find here - probably all three of them will be somewhere in your prgs in the project. But "AND" usually servers to narrow the hit list, so i can't imagine, what the result in your case should look like...

My KI says:
(?=.*#Objectdat)(?=.*\bput\b)(?=.*\bsina\b)
might do, what you want - "It finds matches in a text that contains all three terms, regardless of the order or distance between them."

Re: Xide search

Posted: Sat Nov 09, 2024 10:40 am
by Horst
Hallo Karl

i wanna find all lines with "SELF:odbSina:FIELDPUT (#ObjektDat"

Between fieldput and ( i have sometimes 1 space and sometimes more then 1 space and i tried (?=.*#Objectdat)(?=.*\bput\b)(?=.*\bsina\b) but doesnt work.

As i understand Chris it work in 'Find in files' but only in 'current file' not over the whole project so i dont need it.

Horst

Re: Xide search

Posted: Sat Nov 09, 2024 11:19 am
by FFF
Horst wrote: Sat Nov 09, 2024 10:40 am ...
As i understand Chris it work in 'Find in files' but only in 'current file' not over the whole project so i dont need it.
What Chris wrote: The regex option is only available in the Find in Files dialog. There you may restrict the search range to the current file, but the default is "Project", which is, as i think, what you want.

Re: Xide search

Posted: Sat Nov 09, 2024 12:26 pm
by Chris
Hi Horst,

Did you check the "Reg Exp" checkbox in the find in files dialog?

Re: Xide search

Posted: Sat Nov 09, 2024 12:41 pm
by Horst
Hello Chris

Yes i did, search a long time and the result is empty
See the pic

Horst