<p></p>
<blockquote>
<p dir="auto">Detects filetype based on a shebang line in the file or the filename extension.</p>
</blockquote>
<p dir="auto">Which was correct until someone decided to add the html/xml stuff and didn't update it.</p>
<blockquote>
<p dir="auto">Not a good presumption.<br>
I did not find this "filetype guarantee" in the manual.</p>
</blockquote>
<p dir="auto">All projects as old (the oldest release tag in git is 2005 when the project was moved from CVS to SVN but that clearly wasn't the start of the project) as Geany have some undocumented presumptions of how the project works and how things are intended to work.  One of the skills in contributing to open source is to listen and learn those unwritten presumptions.</p>
<p dir="auto">Unconditionally changing the filetype (if detected) from a reloaded file means a user specified filetype will be overridden, and people do reload for all sorts of things, there is even an automatic reload option used by some for dynamic things like logfiles or program outputs.  An accidental filetype detection on reload would keep changing the user set filetype for those.</p>
<p dir="auto">If there is an argument for re-running the filetype detection on an open file then a menu item (which can have a keybinding so you can avoid that horrible menu thing :-) should be added to do that.  Do not to connect two separate actions and force users to accept both when they only want one.</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/2996#issuecomment-967794800">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJYTGLZSZZQOLQICH2DULYEAZANCNFSM5H5OSHDQ">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/AAIOWJ62FPO7QFYCGFM3UW3ULYEAZA5CNFSM5H5OSHD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHGXWA4A.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/2996#issuecomment-967794800",
"url": "https://github.com/geany/geany/issues/2996#issuecomment-967794800",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>