this post was submitted on 16 Mar 2026
20 points (100.0% liked)

Linux

13897 readers
276 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 3 years ago
MODERATORS
 

On windows, Notepad++ compare plugin let's you compare unsaved files. So to compare two texts copied from elsewhere, just make two new tabs and paste the texts. Compare plugin will happily compare line by line.

On Linux I havent found something similar. The closes is Kate, but you still have to save tmp1.txt and tmp2.txt , and remove the clutter when finished.

Does anybody know a compare app that just lets you paste two text blocks without saving files first?

top 13 comments
sorted by: hot top controversial new old
[–] unexpectedprism@programming.dev 15 points 2 months ago (2 children)

meld allows you to start an empty comparison and to paste content into it without saving.

[–] bobby@lemmy.dbzer0.com 2 points 2 months ago

meld is pretty cool, yes.

[–] klangcola@reddthat.com 2 points 2 months ago

I already use Meld, yet somehow it never occurred to me to press that button xD Thanks!

[–] frongt@lemmy.zip 11 points 2 months ago* (last edited 2 months ago)

diff(1)

Edit: oh I'm not sure you can paste two things into the terminal like that. Maybe kdiff3. If I'm really lazy I use this online one: https://editor.mergely.com/

[–] dihutenosa@piefed.social 6 points 2 months ago
diff <<EOF  
pastestuffhere  
EOF  

while this is running, paste the other stuff into terminal. I'm assuming diff reads stdin, if not given a filename.

[–] dgdft@lemmy.world 5 points 2 months ago
[–] dihutenosa@piefed.social 3 points 2 months ago* (last edited 2 months ago)

vim's :diffthis

[–] jack@lemmy.sdf.org 3 points 2 months ago

For CLI, diff has already been mentioned; for a GUI application I'd recommend meld:

https://meldmerge.org/

[–] UnpledgedCatnapTipper@piefed.blahaj.zone 2 points 2 months ago (1 children)

You could always run NP++ via WINE if you can't find a native Linux solution that you like.

[–] klangcola@reddthat.com 2 points 2 months ago (1 children)

You're not wrong, but..... Yuck

I have no hangups about using Wine for games and Windows only special snowflake apps. But a text editor through wine on Linux just feels dirty xD

I didn't say it was ideal, but if nothing else has the feature you want, it would work!

[–] Jestzer@lemmy.world 2 points 2 months ago (1 children)

It’s not a very Linux-y answer, but VSC does allow you to compare 2 pages for differences. Those pages can be unsaved or saved files.

[–] klangcola@reddthat.com 1 points 2 months ago

Thanks, I'll add VSCode/ium to the arsenal. I tend underutilize VSCode since Kate usually does everything needed by a text editor without all the baggage.