+1 vote


I would need some more advanced searches, i would like to search for two or more words with AND but to set proximity of this words in file, so i can for example find only those matches in a large php file where table name and word "delete" is no far away than 2 lines.

This way i could find probably all places where there is a delete command from specific table and skip all wrong results with only delete or table name, but not in the same query or belonging to other table or delete.

Of course this is only one example, it would be very powerful future for everyone who needs it, could potentially pin point search phases a lot faster.

As for how to add it to the UI, it could be just a checkbox option with text box specifying how far in lines the words should be.

What you think?

asked by (80 points)

1 Answer

+1 vote
Best answer

This option is available in FileLocator Pro using the NEAR keyword, e.g.

delete NEAR My_Table

If you want to specify a specify number of characters, e.g. 200

delete NEAR:200 My_Table
answered by (57.3k points)
selected by
Thx, was using free version, time to change.