reywood / sublime-project-specific-syntax

Allows syntax settings to be specified per project in Sublime Text
GNU Lesser General Public License v3.0
87 stars 8 forks source link

Support override by executable bit of a file access mask #13

Open timothybasanov opened 7 years ago

timothybasanov commented 7 years ago

I want to be able to mark all executable files in my ~/bin directory as Bash:

{
    "folders":
    [
        {
            "path": ".",
        }
    ],
    "syntax_override": {
        "mask 700": ["ShellScript", "Shell-Unix-Generic"]
  }
}

Not sure how to make config work well given that keys are already used for path masks or how to combine file path and executable bit mask.

TriMoon commented 5 years ago

Useless feature because an executable file can be in any language, binary/bash/perl/python/etc Advice close as wont-fix...

reywood commented 5 years ago

It's a useful feature if your project only contains one type of executable, especially in the case of shell scripts since many people don't use file extensions with them.