zee-editor / zee

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

[Question] Behaviour Regarding Multiple Suffixes #84

Open kevinmatthes opened 2 years ago

kevinmatthes commented 2 years ago

Some contexts require source files to have more than one suffix. These second suffixes typically originate from a build system and / or testing suites. For instance, the autotools suite often generates *.in and *.out files. Another example are the mutmut mutation tests for Python projects where the original state will be kept during the processing with *.bak backup copies of the respective source file.

At the moment, the default configuration has dedicated entries for autotools input files in the Python section (*.in). My question is if there is mechanism to automatically "ignore" the second suffix in order to apply the correct syntax highlighting. This would prevent four specifications of each file type (normal, backup, autotools input, and autotools output).

kevinmatthes commented 2 years ago

85 is a suggestion how this mechanism might be introduced. I am looking forward for feedback and wishes for further common second suffixes in case I should have forgot some.