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 #40

Closed iainh closed 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.

This PR is built on top of the highlight-with-queries branch as it needs the new configuration file format.