-
-
Notifications
You must be signed in to change notification settings - Fork 644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move All Zellij Configuration to KDL #1036
Conversation
This looks good already. Could you add the themes as well? So we can have some idea on how they would look? |
@a-kenji Where do these normally live? Should they be a subsection of the config file? Sorry, I've also not played around much with the themes before 😅 |
@a-kenji Maybe like this? This is just in the themes folder though – I don't know if it belongs in the config yet! |
Yes like that! The theme would get dropped just like that in the config file.
|
Awesome! This should already parse fine, but what does this mean in terms of actual colors? It's some sort of indexed color space?
Awesome! Should be pretty easy as all of the top-level sections ( |
It is the color space our default theme uses, to be compatible with every terminal, since not everyone supports truecolor. But if it parses, then it's not problem - since we already handle it. https://zellij.dev/documentation/themes.html
👍 |
As an implementation question, would people find it cleaner to keep the current I'm thinking about things like |
My instinct tells me that this seems like conversion implementation and thus we'd better make it explicit rather than relying on an intermediate struct - but @a-kenji has a lot more context so maybe he thinks differently. |
I'd personally prefer the same, as it would help clean up a lot of redundant structs, but also keen to hear what @a-kenji thinks! |
If we still have the same functionality and it doesn't get more complicated I don't care either. I would like to keep the ability to just add an option and it being added to the |
An update for those following this: I've started chopping out the I wanted to chop out all of that then rebuild to parse the non |
This reverts commit 5e22386.
For anyone interested in my future KDL battles: https://github.com/zellij-org/zellij/tree/kdl-burnsite |
Resolved in #1759 |
KDL is pretty nice!
The plan it so use it instead of YAML for configuration and layouts (which will also be unified)
This change will involve writing a bit of parsing code, but let's get the format nailed down first!
Here is a demo of keybind configuration with syntax highlighting!