sublime-project-specific-syntax icon indicating copy to clipboard operation
sublime-project-specific-syntax copied to clipboard

Support override by executable bit of a file access mask

Open timothybasanov opened this issue 7 years ago • 2 comments

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.

timothybasanov avatar Jul 11 '17 18:07 timothybasanov

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

TriMoon avatar Jan 25 '19 14:01 TriMoon

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.

reywood avatar Jan 25 '19 17:01 reywood