davehardy20-pi-theme-switcher

内容来源:README.md(说明文档) · 原始地址 · 查看安装指南

原始内容

@davehardy20/pi-theme-switcher

Pi package for switching TUI themes on the fly.

What it adds

  • /theme — interactive theme picker
  • /theme <name> — switch directly to a named theme
  • /theme-status — show package name, version, source path, active theme, and available themes
  • Ctrl+Shift+T — cycle through themes
  • switch_theme tool — let Pi change the current theme without reloading
  • temporary theme swatch widget after a switch

Install

From git:

pi install git:github.com/davehardy20/pi-theme-switcher

From a local checkout during development:

pi install /Users/dave/tools/pi-theme-switcher

For one run only:

pi -e /Users/dave/tools/pi-theme-switcher

Notes

  • Theme switching is available only in the interactive TUI.
  • If commands appear twice, Pi is probably loading both this package and the old local agent/extensions/theme-switcher.ts file.
  • Disable or remove the old local auto-discovered extension before reload verification.

Update flow

  1. update the package repo
  2. push to GitHub
  3. run pi update --extensions or reinstall the package
  4. run /reload

/reload alone does not fetch newer package commits.

Troubleshooting

Run /theme-status to confirm:

  • package name
  • package version
  • loaded source path
  • active theme
  • visible theme list

Build and test

npm run typecheck
npm run test
npm run build