Skip to content

refactor(inline): static palette, tui purge and line wrapping - #146

Merged
HarshK97 merged 3 commits into
mainfrom
refactor/static-ansi-palette-tui-purge
Sep 8, 2026
Merged

refactor(inline): static palette, tui purge and line wrapping#146
HarshK97 merged 3 commits into
mainfrom
refactor/static-ansi-palette-tui-purge

Conversation

@HarshK97

@HarshK97 HarshK97 commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Dropped the old theme and TUI, added wrapping to inline diff.

What changed:

  • Cut internal/theme and internal/tui. That's ~7,900 lines gone, plus bubbletea, lipgloss, termenv, and gotreesitter out of go.mod.
  • Added a small static palette in internal/color. It doesn't allocate, it just prints ANSI codes.
  • Inline diff now wraps long lines to fit your terminal. Wrapped lines line up after the gutter and don't mess with line numbers. It's off by default and stays off in patch mode so git apply won't break.
  • Added wrap, wrap-width, and tab-width flags. Tab width also reads from config if you set it there.

Tests cover the new wrapping in internal/inline and the CLI flags in tests/e2e.

…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.
@HarshK97
HarshK97 merged commit 964991c into main Sep 8, 2026
7 checks passed
@HarshK97
HarshK97 deleted the refactor/static-ansi-palette-tui-purge branch September 8, 2026 15:27
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.

1 participant