-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Hi there. I have a script in my dotfiles called wino that I use for managing wine stuff. I noticed when I went to edit it that it detected the filetype as "ino" even though the first line of the file is a shebang specifying /bin/sh. I was kind of confused about this: first of all, there isn't a file called "ino.yaml" in the syntax config files. Once I did a search for "ino" though, I found it. And it seems to be because Micro detects that any filename that ends in "ino", regardless of whether there is a dot before that ino, is an arduino file.
What's more, I couldn't seem to override the detection in any way. I don't need the arduino filetype; if its presence is going to interfere with filetype detection, I'd rather it be effectively gone. Trying to create a blank file called arduino.yaml in $MICRO_CONFIG_HOME/syntax caused Micro to complain on startup. And replacing the filename specifier with "^disabled-disabled-disabled$"--woe be me if I ever make a file with that name--didn't make any difference.
EDIT: It does seem, at least, that I can specify in settings.json that any path ending in "scripts/wino" is a shell script.