randy3k / Terminus

Bring a real terminal to Sublime Text
https://packagecontrol.io/packages/Terminus
MIT License
1.37k stars 83 forks source link

Unique .sublime-syntax for terminal views #413

Closed JJMorton closed 4 months ago

JJMorton commented 4 months ago

It would be useful to have terminus views open with a custom syntax (named e.g. "Terminus"), rather than just "Plain Text". This would allow the user to create a syntax-specific preferences file to disable packages, for example. The syntax would simply act as plain text does, so wouldn't change any behaviour.

Considering how easy this would be to implement, I suspect there might be a reason why it hasn't been done, but I couldn't find anything relevant in previous issues.

Thanks

randy3k commented 4 months ago

It is a great idea. Implemented in fe0507f.

JJMorton commented 4 months ago

Thanks, it works great! Just a note, with the syntax named "Terminus.sublime-syntax", the corresponding syntax specific settings are saved in "Terminus.sublime-settings", the same file used for the terminus preferences. Maybe this is not a problem, but the syntax might be better named something else to avoid clashes.

randy3k commented 4 months ago

Do you have any suggestion? Terminus View?

JJMorton commented 4 months ago

"Terminus View" or "Terminus Terminal" would do the job I think.

randy3k commented 4 months ago

renamed the file to "Terminus View" 88e46b9.

JJMorton commented 4 months ago

Looks good!