paoloschi left a comment (geany/geany#4396) Thanks for the encouragement and suggestions :) After all, once one as manually set the file type to “Shell,” writing YSH is already reasonably handy. I will address syntax highlighting later if I succeed; for now, I am just trying to get Geany to recognize Oils scripts by automatically activating the native Shell filedef.
By copying the `filetype_extensions.conf` file from /usr to my /home and adding `*.osh;*.ysh;` to the value of the `Sh` key, I managed to obtain this for all the scripts that have a Oils extension in their filename. (I'm not sure if this is the correct way, though) In other cases, when for example a file contains the shebang `#! /bin/bash` but no extension in his filename, Geany still automatically selects the `Shell` type, whether executable or not. How can I set Geany to do the same if my script has no extension in the filename but only contains the shebang `#! /bin/ysh`? -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/4396#issuecomment-3174477284 You are receiving this because you are subscribed to this thread. Message ID: <geany/geany/issues/4396/3174477...@github.com>