batrachianai

A Textual widget for beautiful diffs in the terminal

19
0
100% credibility
Found Apr 02, 2026 at 19 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Python
AI Summary

A widget for terminal apps that displays color-highlighted differences between two text files in unified or split views with syntax coloring and annotations.

How It Works

1
🔍 Discover the diff viewer

You find a handy tool that makes comparing old and new versions of files look stunning right in your terminal screen.

2
📦 Add it to your project

You simply include this viewer in the terminal program you're building, like adding a new feature.

3
📁 Pick your files

Choose the original file and the updated one you want to compare side by side.

4
See the changes glow

The viewer loads both files and lights up additions in green and removals in red, with pretty syntax colors too.

5
🔄 Switch your view

Press a key to flip between stacked or split layout, and toggle helpful symbols for quick scanning.

6
📜 Scroll and explore

Smoothly scroll through the comparison to spot every tiny change, with line guides keeping it all aligned.

Master your edits

You now effortlessly review and understand all the differences, speeding up your file updates beautifully.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 19 to 19 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is textual-diff-view?

Textual-diff-view is a Python widget for the Textual TUI framework that renders beautiful diffs between two text files or code snippets right in your terminal app. It highlights additions in green, deletions in red, with syntax highlighting and optional character-level diffs for precise changes. Toggle between unified (top-bottom) or split views, plus annotations for accessibility, solving the pain of plain text diffs in tools like git viewers or code reviewers.

Why is it gaining traction?

In the crowded textual widgets GitHub space—like textual widgets python, scrollview, textlog, and tree—this stands out with seamless theming, auto-scroll linking in split mode, and a load-from-file API that guesses languages for highlighting. Developers grab it for the polished look without custom CSS hacks or textual widget library boilerplate, plus a ready CLI example app via uv add textual-diff-view. It fits right into textualize textual GitHub apps, beating basic diff outputs with visual punch.

Who should use this?

Textual app builders creating git diffs, code comparison tools, or TUI editors need this for inline change views. Python CLI devs enhancing textual github irc bots or analysis dashboards will appreciate the drop-in widget. It's for terminal-first teams ditching web diffs for native feel in textual widget gallery projects.

Verdict

Grab it if you're deep in Textual—it's a solid addition despite 19 stars and 1.0% credibility score signaling WIP status with minimal tests. Docs and examples are crisp, but wait for polish if stability matters.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.