Skip to content

chore: remove redundant tokyo_night.json style file - #567

Open
troclaux wants to merge 1 commit into
charmbracelet:mainfrom
troclaux:chore/remove-redundant-tokyo-night-json
Open

chore: remove redundant tokyo_night.json style file#567
troclaux wants to merge 1 commit into
charmbracelet:mainfrom
troclaux:chore/remove-redundant-tokyo-night-json

Conversation

@troclaux

@troclaux troclaux commented Jun 2, 2026

Copy link
Copy Markdown

styles/tokyo_night.json is an orphan left over from when the style key used an underscore. The style has since been registered as "tokyo-night" (kebab-case) in DefaultStyles, so go generate ./... only ever produces tokyo-night.json.

The underscore variant is:

  • unreachable through the named-style lookup (only "tokyo-night" is in the map)
  • identical in content to tokyo-night.json
  • not regenerated by go generate

Keeping it around causes confusion (two files, same content, different names).

Closes #518

styles/tokyo_night.json is an orphan left over from when the style key
used an underscore. The style has long been registered as 'tokyo-night'
(kebab-case) in DefaultStyles, and go generate ./... now only produces
tokyo-night.json. The underscore variant is unreachable through the
named-style lookup and causes confusion.

Closes charmbracelet#518
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

Successfully merging this pull request may close these issues.

Redundant tokyo_night.json theme

1 participant