If I do a 'Find in Files' I can fill in the 'Files' setting to limit search to a particular file pattern (fif_files).
However, if I put in '--exclude' and '--exclude-dir' parameters into 'Extra options' it won't work. This is because '--include' has to come before --exclude*, but Geany puts the 'Extra options' before the fif_files.
Simply flipping it around in the `get_grep_options` function seems to work for me.
Hmm, grep docs don't mention any order requirement for include/exclude.
Indeed, they don't. But it's an issue, at least for me.
My implied question was what other options are order dependent and could be screwed up by the change?
Better to do away with grep totally as I commented elsewhere.
BTW, `--include` arguments are ignored by Geany when the recursive option is not set, because of [this commit](https://github.com/geany/geany/commit/a0d6a1f618d963e95df656b3e9cc150e4adb95...). (For me, that commit wasn't necessary, grep does filter files passed explicitly. Ideally we wouldn't need that commit, as it is complicating my work on #2322).
github-comments@lists.geany.org