Recent

Author Topic: search for text in the entire project  (Read 1383 times)

desperateNewBee

  • New Member
  • *
  • Posts: 12
search for text in the entire project
« on: February 05, 2023, 10:15:15 am »
Hi,

is there any possibility to search for some text in the entire project (in all units, which belong to the project).

Right now I am performing my search in every single unit, which is extremely unefficient.
Something like a 'global search option' would be perfect.
Propably this is an easy to find function - but not for me...

Thanks in advance for any hints!

bytebites

  • Hero Member
  • *****
  • Posts: 673
Re: search for text in the entire project
« Reply #1 on: February 05, 2023, 10:18:17 am »
Ctrl+Shift+F

MarkMLl

  • Hero Member
  • *****
  • Posts: 7678
Re: search for text in the entire project
« Reply #2 on: February 05, 2023, 10:25:06 am »
...which is a shortcut for Search -> Find in Files... in the IDE.

Not all of us think in terms of keyboard shortcuts, and as ones hands get older they become less convenient.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

dbannon

  • Hero Member
  • *****
  • Posts: 3082
    • tomboy-ng, a rewrite of the classic Tomboy
Re: search for text in the entire project
« Reply #3 on: February 05, 2023, 10:27:10 am »
Code: Pascal  [Select][+][-]
  1. $> grep -ni The_Text *.pas <enter>

generally *nix only....

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Thaddy

  • Hero Member
  • *****
  • Posts: 15706
  • Censorship about opinions does not belong here.
Re: search for text in the entire project
« Reply #4 on: February 05, 2023, 10:49:58 am »
Well, no:
All Borland products come with a grep since TP3.
Most real programmers on windows - have Cygwin or Mingw installed, both also have a version of grep.
Wordstar short cuts are a blessing... ;D All IDE's owe to wordstar. Tnx Rob!
https://en.wikipedia.org/wiki/File:Wordstar_Screenshot.png
« Last Edit: February 05, 2023, 10:52:56 am by Thaddy »
If I smell bad code it usually is bad code and that includes my own code.

desperateNewBee

  • New Member
  • *
  • Posts: 12
Re: search for text in the entire project
« Reply #5 on: February 05, 2023, 12:52:19 pm »
THANKS Guys!
Ctrl+Shift+F
How simple...
Works great!!!  :)

wp

  • Hero Member
  • *****
  • Posts: 12364
Re: search for text in the entire project
« Reply #6 on: February 05, 2023, 01:09:56 pm »
If you - like me - tend to forget rarely used short-cuts, you probably will not forget that there is a "Find in Files" command in the "Search" menu where you have an option to "Search all files in project", or even to "Search in directories" which can be set to any directory, e.g. Lazarus installation directory, incl. subdirs.

 

TinyPortal © 2005-2018