<p>I'm now working on this, starting from your commits. I think -M shouldn't be the only regex option for pcre, because sometimes you don't want <code>.</code> to match EOL. The -M option could be manually enabled in the Extra Options field (perhaps we could have 2 or 3 of these fields, each with checkboxes to enable/disable).</p>
<blockquote>
<p>To clarify, I don't consider the difference in include syntax a problem</p>
</blockquote>
<p>It is, because of the tooltips in the FIF and Project dialogs' file patterns field - <code>*.h *.c</code>. (The Project field can't be changed to regex syntax because I have a PR to use it for a GtkFileFilter in the open dialog).</p>
<blockquote>
<p>grep will not enumerate the filesystem in sorted order</p>
</blockquote>
<p>Without the recursive option, Geany actually passes the filenames to grep itself. That can be sorted, we could implement recursive filenames too.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2322?email_source=notifications&email_token=AAIOWJ3DQJ57G756JKP6YI3QPCBYFA5CNFSM4I2FFBWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBQSABY#issuecomment-543236103">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ35LJP4ZCMQFVPRKUDQPCBYFANCNFSM4I2FFBWA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJYZG7HXSBUOVM5ULRLQPCBYFA5CNFSM4I2FFBWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBQSABY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2322?email_source=notifications\u0026email_token=AAIOWJ3DQJ57G756JKP6YI3QPCBYFA5CNFSM4I2FFBWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBQSABY#issuecomment-543236103",
"url": "https://github.com/geany/geany/issues/2322?email_source=notifications\u0026email_token=AAIOWJ3DQJ57G756JKP6YI3QPCBYFA5CNFSM4I2FFBWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBQSABY#issuecomment-543236103",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>