<p></p>
<p>Yeah, I think (1) should be doable quite easily. There would always be a problem if there is both <code>some_file.cpp</code>, <code>some_file.c</code> and <code>some_file.h</code> in the project to detect to which of the source files the header belongs (different projects use different directory structures and there's no easy way to tell which file belongs to which) but these cases should be exceptions.</p>
<p>I don't remember the Geany API exactly and implementing this feature would require that Geany allows plugins to specify the filetype that should be used to open the files but I believe there is such a function.</p>
<p>I'll have a look at this when I have time - should be quite easy to implement.</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/issues/1121#issuecomment-951347858">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ44CH276BLYPBJHVE3UIXD7NANCNFSM5GE7YQPA">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/AAIOWJ2QHZVVE7G5HI4YS5DUIXD7NA5CNFSM5GE7YQPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHC2GVEQ.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/issues/1121#issuecomment-951347858",
"url": "https://github.com/geany/geany-plugins/issues/1121#issuecomment-951347858",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>