The function find_in_project as your comments imply is pretty inefficient. I do not know if acceptable efficiency for this is possible in Lua. One solution is to have an external interface to a much faster program such as GNU grep. I have written a basic interface to grep for Textadept. I will share it if you would be interested. The other common program is ack. For Windows its "find" command is its equivalent I believe. A more extreme solution would be a loadable C module which would implement the functionality.
The function find_in_project as your comments imply is pretty inefficient. I do not know if acceptable efficiency for this is possible in Lua. One solution is to have an external interface to a much faster program such as GNU grep. I have written a basic interface to grep for Textadept. I will share it if you would be interested. The other common program is ack. For Windows its "find" command is its equivalent I believe. A more extreme solution would be a loadable C module which would implement the functionality.