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

Color Schemes............. #11406

Closed
pb5050 opened this issue Oct 3, 2021 · 4 comments
Closed

Color Schemes............. #11406

pb5050 opened this issue Oct 3, 2021 · 4 comments
Labels
Area-Settings Issues related to settings and customizability, for console or terminal Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Issue-Question For questions or discussion Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-Answered Related to questions that have been answered

Comments

@pb5050
Copy link

pb5050 commented Oct 3, 2021

i imported a massive amount of color schemes from colortool and or other palces and the settings file becomes massively long.

is there a way we could make "color schemes" a separate file?

im not to familiar with coding is there a way i could create a json file with array for color schemes and somehow reference it in the settings file so its not so cluttered"?

@pb5050 pb5050 added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Oct 3, 2021
@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Oct 3, 2021
@zadjii-msft
Copy link
Member

A clever way to work around this would be to pretend that they're a "fragment extension". The docs are much more elaborate here. But you could do something like:

  1. Make a folder in %localappdata%\Microsoft\Windows Terminal\Fragments. For this example, we'll use TestFragment as our directory name.
  2. in that TestFragment, make a new .json file. It can be named anything (as long as it's extension is .json). We'll call it schemes.json.
  3. In schemes.json, add all your schemes. For example:
{
"schemes": [
  {
    "name": "Banana Blueberry",
    "black": "#17141f",
    "red": "#ff6b7f",
    "green": "#00bd9c",
    "yellow": "#e6c62f",
    "blue": "#22e8df",
    "purple": "#dc396a",
    "cyan": "#56b6c2",
    "white": "#f1f1f1",
    "brightBlack": "#495162",
    "brightRed": "#fe9ea1",
    "brightGreen": "#98c379",
    "brightYellow": "#f9e46b",
    "brightBlue": "#91fff4",
    "brightPurple": "#da70d6",
    "brightCyan": "#bcf3ff",
    "brightWhite": "#ffffff",
    "background": "#191323",
    "foreground": "#cccccc",
    "cursorColor": "#e07d13",
    "selectionBackground": "#220525"
  }

]
}

Restart the Terminal, and you'll see that all the schemes from that file are available in the Terminal, without needing to be in the settings.json file itself.

@zadjii-msft zadjii-msft added Area-Settings Issues related to settings and customizability, for console or terminal Issue-Question For questions or discussion Resolution-Answered Related to questions that have been answered labels Oct 4, 2021
@pb5050
Copy link
Author

pb5050 commented Nov 9, 2021

i was trying to do this again but i have No "Fragments" directory

the only thing i could find was
C:\Users\Janss\AppData\Local\Packages\Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe\LocalState
that had all my settings backup json files and the main settings . json file......

hmm i have it installed from the app store. but i did a search for folders names "Fragments" and found nothing.

@zadjii-msft
Copy link
Member

i was trying to do this again but i have No "Fragments" directory

That makes sense, we don't make one by default. Hence why I asked in the first step to create the Fragments/ directory 😄

@pb5050
Copy link
Author

pb5050 commented Dec 19, 2021

love you. what elese will this work with>!?!?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Settings Issues related to settings and customizability, for console or terminal Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Issue-Question For questions or discussion Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-Answered Related to questions that have been answered
Projects
None yet
Development

No branches or pull requests

2 participants