My typical usecase: I remember that I used some class (e.g. Mockitos InOrde, CsvSource or ExecutorService) in a similar situation or test and start searching in which project that was. My root contains 30+ projects - so sometimes this took me 15+ min or I had to google again, howto use find -exec
- and even then it's clumsy..
Now this is perfect to me: I enter the search string (class, method, ...) and the surrounding context width in hits (the 'n' in grep -n). Then a div-container shows me all scrollable hits and I can refresh my mind on what I did years ago. Finally I hit Return and get a Button-List widget with all filenames with hits, where i can click on. This opens the project in IDEA, opens the file with the hit inside this project and even puts the clipboard copied search string by keystroke into IDEA's search dialog, so I can navigate with arrows... Super helpful to me. :smile:
To reuse, there is a little customization needed, as I hardcoded my projects root and file pattern *.java.
Also the exclusion of 'z'-starting directories is sure special to me - but all that should be easy to adapt.
Also, I am more then happy to help, if there's need.
Note: Keystrokes in IDEA at end of script, needs accessibility rights. My platform is MacOS.