I want to have such a [search](http://unix.stackexchange.com/questions/289957/find-grep-for-list-of-tex-fil...) in reading my .tex documents in Geany.
`perl -l0 -ne 'print for /\subimport{}{(.*?)}/g' file.tex | xargs -0 grep -l gastric --`
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1081
Geany runs grep for find-in-files searches and treats its returns as search results. You could change the grep setting to point to a script that does what you want, but it will have to accept the same options and arguments that GNU grep does.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1081#issuecomment-227600759
How can you make such a script support all GNU grep options and arguments?
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1081#issuecomment-227639585
Perhaps "support" is the wrong word, you just have to accept them, because Geany sets grep specific options and arguments on the command it runs.
Having accepted them you can of course ignore them, thats up to the script. :smile:
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1081#issuecomment-227641528
Are there any particular grep specific options and arguments that I should support?
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1081#issuecomment-227641875
At least these https://github.com/geany/geany/blob/master/src/search.c#L1551
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1081#issuecomment-227644737
And you might get a long list of directories in some circumstances I think.
Replacing grep isn't really a documented and supported feature, so you might need to read the Geany code to see what it passes to the command.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1081#issuecomment-227645372
github-comments@lists.geany.org