refactor(inline): static palette, tui purge and line wrapping - #146
Merged
Conversation
…gacy tui and theme Replace the 24-bit TrueColor theme and Lipgloss styling layers with a zero-allocation static 16-color ANSI palette in internal/color. Purge the legacy Bubble Tea interactive TUI (internal/tui) and runtime theme engine (internal/theme), dropping bubbletea, lipgloss, termenv, and gotreesitter from go.mod and go.sum. Update the inline diff renderer and CLI commands to use static ANSI escapes and default to inline diff mode with pager support.
Wrap long lines to terminal width in inline diff, keeping wrapped lines aligned after the gutter without polluting line numbers. Wrap is off by default and never activates in --patch mode so git apply stays valid; --wrap-width auto-enables wrapping at an explicit width. Also adds --tab-width with config fallback.
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.
Dropped the old theme and TUI, added wrapping to inline diff.
What changed:
internal/themeandinternal/tui. That's ~7,900 lines gone, plus bubbletea, lipgloss, termenv, and gotreesitter out of go.mod.internal/color. It doesn't allocate, it just prints ANSI codes.git applywon't break.wrap,wrap-width, andtab-widthflags. Tab width also reads from config if you set it there.Tests cover the new wrapping in
internal/inlineand the CLI flags intests/e2e.