feat: add ghostty-import extension — convert 463 Ghostty themes to Pi format#10
Open
arosstale wants to merge 2 commits intodisler:mainfrom
Open
feat: add ghostty-import extension — convert 463 Ghostty themes to Pi format#10arosstale wants to merge 2 commits intodisler:mainfrom
arosstale wants to merge 2 commits intodisler:mainfrom
Conversation
Changes: - .pi/damage-control-rules.yaml: 279 → 610 lines (full disler upstream) - pi-power.bat: loads pi-pai v3 instead of damage-control.ts (no overlap) - pi-max.bat: full extension stack + pi-pai v3 - mprocs.yaml: multi-process config for 10 Pi instances - start-all.bat, start-picks.bat: batch runners for Windows pi-pai v3 replaces damage-control.ts when loaded — same YAML, same patterns, plus /pai /ralph /rate commands, ISC tracking, and live TUI widget.
… format Adds /ghostty <name> command that fetches any Ghostty theme from iTerm2-Color-Schemes (463 themes), parses the key=value format, maps the 16-color ANSI palette to Pi's theme vars/colors structure, and saves the result to .pi/themes/<slug>.json. Also adds /ghostty-list [filter] to browse and filter available themes. Conversion maps: - palette[1-6] → red, green, yellow, blue, purple, cyan - background → bg, derived bgDark, bgDeep, surface - foreground → fg, derived fgSoft, comment - selection-background → selection - Generates all 70+ Pi color keys from 6 base palette colors Zero new dependencies. Uses fetch() for GitHub API/raw content.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a
ghostty-importextension that bridges Ghostty's 463 community themes to Pi's theme system.Commands
/ghostty Dracula.pi/themes/dracula.json/ghostty Catppuccin Mocha/ghostty-list/ghostty-list nordHow it works
key = valueformat)vars(red, green, yellow, blue, purple, cyan)colorskeys from the 6 base colors (surface, selection, bgRed, bgGreen, etc.).pi/themes/<slug>.json— ready for/themeor-tflagExample conversion
Ghostty input:
Pi output:
{ "name": "dracula", "vars": { "bg": "#282a36", "fg": "#f8f8f2", "red": "#ff5555", "green": "#50fa7b", ... }, "colors": { ... all 70+ keys mapped ... } }Usage
just ext-ghostty # or pi -e extensions/ghostty-import.ts -e extensions/theme-cycler.ts