<p></p>
<p dir="auto">I combined the commits.  The change that lets it work when a project isn't loaded is:</p>
<div class="highlight highlight-source-c"><pre>   <span class="pl-k">if</span> (prj_org)
        {
                header_patterns = <span class="pl-c1">get_precompiled_patterns</span>(prj_org-><span class="pl-smi">header_patterns</span>);
                source_patterns = <span class="pl-c1">get_precompiled_patterns</span>(prj_org-><span class="pl-smi">source_patterns</span>);
        }
        <span class="pl-k">else</span>
        {
                <span class="pl-c"><span class="pl-c">//</span> use default header/source patterns if project isn't open</span>
                gchar **headers, **source;
                headers = <span class="pl-c1">g_strsplit</span>(PRJORG_PATTERNS_HEADER, <span class="pl-s"><span class="pl-pds">"</span> <span class="pl-pds">"</span></span>, -<span class="pl-c1">1</span>);
                source = <span class="pl-c1">g_strsplit</span>(PRJORG_PATTERNS_SOURCE, <span class="pl-s"><span class="pl-pds">"</span> <span class="pl-pds">"</span></span>, -<span class="pl-c1">1</span>);

                header_patterns = <span class="pl-c1">get_precompiled_patterns</span>(headers);
                source_patterns = <span class="pl-c1">get_precompiled_patterns</span>(source);

                <span class="pl-c1">g_strfreev</span>(headers);
                <span class="pl-c1">g_strfreev</span>(source);
        }</pre></div>
<p dir="auto">If a general config is added to set commands for open folder/terminal, an option to set preferred header/source file extensions could be added as well.  Rather than mess with it in this or the open folder/terminal PRs, I'd prefer to open (yet another) PR specifically to add general preferences.</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-plugins/pull/1122#issuecomment-964653166">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJZZER5K3VZAYCVJCUTULGY63ANCNFSM5GF3IVPA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJ2MJWJC3YJ3U2U6QZ3ULGY63A5CNFSM5GF3IVPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHF7XA3Q.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-plugins/pull/1122#issuecomment-964653166",
"url": "https://github.com/geany/geany-plugins/pull/1122#issuecomment-964653166",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>