zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
47.1k stars 2.71k forks source link

ZED to remember LANGUAGE COLORING for given type of files #4563

Open krstp opened 1 year ago

krstp commented 1 year ago

Check for existing issues

Describe the feature

I would like to request a ZED feature that would by default remember given file/code type selected formatting/coloring. As such each time I open given file, perfectly the same file (or at least similar type of file), I would like ZED to reinstantiate formatting/coloring I selected previously. Currently if I open a file, say a Dockerfile, ZED doesn't remember previous coloring/formatting configuration (unless it is one that falls under currently recognizable file extensions for languages: python, c, rust - so .py, .c, rs etc.). Each time I reopen the same Dockerfile (or any other) I need to re-select given coloring formatting, such as shell. At times it gets a bit annoying to have to reinstantiate all open files in the project, such as multiple dependency files etc.

Such feature would be much welcomed. Thanks again team for all the great work you do!

If applicable, add mockups / screenshots to help present your vision of the feature

No response

JosephTLyons commented 1 year ago

Hey @krstp, would this help you? Having a setting, where you could define your own mapping between a given extension and a language known to Zed:

nt8r commented 1 week ago

Specifically this is useful for files whose extensions don't uniquely determine their language, e.g. .inc files which may be C, C++, obj-C, etc.