zee-editor / zee

A modern text editor for the terminal written in Rust
Apache License 2.0
1.48k stars 42 forks source link

Support determining mode based on shebang interpreter directive #47

Open iainh opened 2 years ago

iainh commented 2 years ago

Attempt to determine the appropriate mode based on the presence of an interpreter directive on the first line of the file. Interpreter directives are examined first, followed by the filename when determining the mode mirroring what Emacs does by default.

Reopening now that highlight-with-queries has been merged. Feel free to close if there is no interest in supporting this feature.