Hi
Here is patch that make filetypes_detect_from_filename() use find_shebang() for better filetype detection. The former function is renamed to filetypes_detect_from_extension().
This should provide complite geany filetypes autodetection for plugins.