microsoft / terminal

The new Windows Terminal and the original Windows console host, all in the same place!
MIT License
94.88k stars 8.22k forks source link

Support importing themes from other terminal apps #2237

Open atrauzzi opened 5 years ago

atrauzzi commented 5 years ago

Description of the new feature/enhancement

Fluent Terminal has the really neat ability to import iterm themes which allows me to use themes from rainglow.

I would love it if the new Windows terminal was able to do the same. That way the community isn't waiting for all the various theme authors to recognize it (if ever!).

Proposed technical implementation details (optional)

I'll leave it up to you guys, but the basic idea would be to just have a look at all the applications rainglow has themes for and maybe implement hyper and iterm theme import functionality.

egmontkob commented 5 years ago

IMHO the ideal solution would be for terminal developers to agree on a format so that vendors can ship their color schemes in a single format only which would work in pretty much all emulators.

This was discussed e.g. in https://bugzilla.gnome.org/show_bug.cgi?id=655030 with no conclusion.

Indeed unfortunately it's much harder to come to an agreement among the involved parties than to implement importing foreign formats.

zadjii-msft commented 5 years ago

This is a pretty good idea for once #1564 lands.

As of #1052, colortool can write out a color scheme as a json blob for the Windows Terminal to be able to consume. While it's obviously not as great as a one-click "import theme" option, it should work well enough currently for converting .itermcolors schemes into Windows Terminal compatible ones.

tylerszabo commented 3 years ago

ColorTool releases a new build with the update I wrote a short PowerShell script to perform the conversion from ColorTool .INI files. It's public domain so feel free to adapt it for other formats.

https://gist.github.com/tylerszabo/eeaea83d05889191efcf7da0853ab365