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. ;-)

Mailing lists / lazarus / 2009-10
5 messages · 2 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
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. ;-)
Graeme Geldenhuys wroteIs 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
2009/10/9 dmitry boyarintsev :
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.
Graeme Geldenhuys wroteThat'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
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".