[Github-comments] [geany/geany] "Save As" does not update filetype (#2124)

elextr notifications at xxxxx
Sun Apr 14 23:42:00 UTC 2019


It is intended that saving a file under a different name does not change the filetype.  Filetypes are only automatically detected when a file is first opened, and after that it is not changed by Geany since a user can set it from the `Document` menu. 

Example use-cases are scripts embedded in HTML and the user selects the filetype to be the script language so its highlighted and parsed, even though the filename is still `.html`, or cases where Geany detects the filetype wrongly and the user sets it.  It would be annoying if the filetype kept changing.

It might be possible to have an option in the Save As dialog, but clicking that is not much of a saving from `Document->Set Filetype->select type` before or after saving.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2124#issuecomment-483068708
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20190414/5fa3a0b5/attachment-0001.html>


More information about the Github-comments mailing list