Repository navigation
Conversation
|
Why not a plugin? |
|
@dmaluka does micro-editor has plugin ecosystem? |
|
@dmaluka i tried to use some of plugins suggested on site, they are mostly outdated and buggy. i am not sure plugins work in stable way. and don't think CONSISTENCY is a feature to plug-it-in. moreover i am sure it is must have to be logically in sync with *nix/GNU convention. |
Apparently, |
|
may it be this is first one to follow what is 30+ yrs is standard de facto ;-) |
|
I'm still not convinced. |
|
Also, even if we wanted to build this feature into the editor, enforcing this feature unconditionally without allowing the user to disable it (which is what this PR does, AFAICS) is definitely a no-go. Also, this feature kind of conceptually conflicts with the default syntax feature we added in #2933: it makes it ineffective for executable files. Which doesn't mean the two features could not be used together, but it probably means this feature should not be enabled by default. |
|
plugin is lua it is more cumbersome than in go. no conflicts with #2933, executableTextFileWithoutShenbang is the last try to detect, since 2933 does not want to explicitly declare NO_SYNTAX. 'micro' was good for some short files. also these small no-shebang scripts ;)
would you like to wrap it with |
one more try, suggest simpler or faster code if you can!
Note
benefit: basic syntax highlight instead of just grey for any script
Tip
CONSISTENCY follow *nix philosophy -- executable text with no shebang is interpreted via
/bin/shnever mind
C++is more expressive and laconic in such a simple cases, but shell is quickest.