Skip to content
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

json: add json representation of schemes #414

Open
colemickens opened this issue Sep 3, 2023 · 1 comment
Open

json: add json representation of schemes #414

colemickens opened this issue Sep 3, 2023 · 1 comment

Comments

@colemickens
Copy link

Hi,

From what I can tell, the iterm colorscheme xml files are the source of truth and the theme-settings files for each terminal is rendered from that.

My goal is to re-use iterm2-color-schemes in the nix-rice project so that NixOS users can choose an iterm2 color theme and have it automatically applied to all of their installed terminals.

However, I don't want to handle XML parsing in Nix, as that's far more involved than parsing a JSON or TOML file. However, I'm not immediately seeing a JSON or TOML representation that contains all of the information from the schemes file.

(For example, the json and tomls I've looked at clearly have a smaller subset of all of the values that I can see skimming through the scheme XML files)

So, my ask would be, would you support a "schemes-json" folder that is "rendered" like other terminals, but would contain all the names/values from the xml scheme. This would make the full scheme data available programmatically, in a more convenient manner.

@colemickens
Copy link
Author

I think I have a few questions:

  1. why is there ./themes and ./example/themes?
  2. why are there some themes duplicated in nix, rather than using the kitty-themes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant