Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-10

Search inside Packages only

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

Is there a way to search inside a Lazarus Package (units that are part of a package) only? I often find the need to do this, but don't know of such an option. Hopefully I simply didn't look hard enough. ;-)

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email

dmitry boyarintsev
to Graeme Geldenhuys
Graeme Geldenhuys wrote
Is there a way to search inside a Lazarus Package (units that are part of a package) only? I often find the need to do this, but don't know of such an option. Hopefully I simply didn't look hard enough. ;-)

Use "Search in Files" (ctrl+shift+f):
* Open the dialog, and select "Search in directories".
* Set the directory of a required package (or parent dir for packages, i.e. lazarus/components)
* Check "include sub directories"
* Click Find.
It should work :)

thanks,
dmitry

Reply by email

Graeme Geldenhuys
to dmitry boyarintsev

2009/10/9 dmitry boyarintsev :

Show quoted text 7 lines
On Fri, Oct 9, 2009 at 7:41 AM, Graeme Geldenhuys wrote: > Is there a way to search inside a Lazarus Package (units that are part > of a package) only? I often find the need to do this, but don't know > of such an option. Hopefully I simply didn't look hard enough. ;-) Use "Search in Files" (ctrl+shift+f):

That's what I currently use, but the problem is that maybe not all units are in the same directory structure. You can add units from various locations into a single package. So the "search in files" is not always ideal.

So a Search option from the Package <name> dialog would be nice - maybe in the "more" menu list. The package will know which units to search and where to find them.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email

dmitry boyarintsev
to Graeme Geldenhuys
Graeme Geldenhuys wrote
That's what I currently use, but the problem is that maybe not all units are in the same directory structure.

Do you mean, if a package uses some FCL/LCL units, the FCL/LCL files should be searched as well?

thanks,
dmitry

Reply by email

Graeme Geldenhuys
to dmitry boyarintsev

2009/10/9 dmitry boyarintsev :

Do you mean, if a package uses some FCL/LCL units, the FCL/LCL files should be searched as well?

/opt/coolcomponent1/<source code here>
/home/graemeg/programming/3rdParty/<utility unit here>

My custom CoolPackage.lpk package contains units from the above locations.

Seach in Files will NOT work unless I search from root directory (/) which will take forever as it will search ALL directories on all my drives.

A more "intelligent" search, managed by the package will know where the units are located an exactly which units to search. A much quicker result compared to a "search in files".

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email