Ever been refactoring code or HTML templates and wanted to see the difference between two chunks of text, and whether they can be merged in some way? Implementing this in KDE is just too easy. Here is the script you need:
#!/bin/bash # Show the difference between the last two items # on the clipboard TMP1=`mktemp` TMP2=`mktemp` dcop klipper klipper getClipboardHistoryItem 0 > $TMP1 dcop klipper klipper getClipboardHistoryItem 1 > $TMP2 kompare $TMP1 $TMP2 rm $TMP1 $TMP2
Save that to a script, then set up a hotkey to it using KHotKeys (I'm using Ctrl+Win+D, 'd' for diff). To use it, copy chunk 1 to the clipboard using Ctrl-C, then chunk 2, then hit Ctrl+Win+D -- and you have a beautiful diff for your viewing pleasure.
I just used this to conclude that I have two Django templates that are better off inheriting from a base template and overriding for differences, (rather than each including various snippet templates), especially since one of them has an addition I had forgotten to add to the other. I wrote the script ages ago, but thought someone else might find it useful.
For Windows users, I'm sorry, I imagine it would take you about 3 days to reproduce something like this working reliably. I'm not mocking -- I have the pain of using Windows for my day job, and it's like being forced to crawl everywhere on hands and knees after I've learnt to walk.
And don't get me started on software installation. I got myself a python-hosting account the other day, and everything I've tried has just worked. With a bit of help from a web-based tool they have, I had set up a trac/svn app for tracking bugs in about 10 minutes, and added authentication to lock down parts of it in about 20 minutes (trac also has a really nice command line tool for admin, BTW).
At work, on the other hand, using an installer and getting it to work correctly (for things like MS SQL Server, Sharepoint etc), is apparently something of an acquired expertise. Unfortunately for me, 'learning from the school of hard knocks' doesn't seem to have worked yet, so I spent most of this afternoon fighting and losing to various installers.
.OK, so I digressed completely and rambled about my frustrations with Windows. Sorry about that.

Comments §
With Eclipse I do the same - granted not from clipboard, but saving a temporary file and deleting it doesn't take 3 days to do...
I guess doing it manually every time doesn't take so long, but I have a very low threshold for boredom when it comes to that kind of thing. If I had never used KDE+Linux, though, I think my life would be much more blissfully ignorant.
By the way, Kompare is nice, but it does not show what has changed inside lines. I use Meld for two-way diffs, and KDiff3 for three-way ones (Meld does not show enough info for those).
Keep up the Windows bashing! ;-)
Anyone know of a way to disable this behavior in Klipper?
No, I don't know how to work-around that. Maybe you could have shortcut that combines the second Ctrl-V with the diff command. That way it could capture the current clipboard, do a 'Ctrl-V' itself (don't know exactly how you'd do this), capture the current clipboard again to a different file and continue as before.
For Windows users:
There is a port of Kdiff3 (a great KDE diffing program that can do directory diff/merge) for Windows. (It's especially powerful in combination with kio-slaves, which you obviously don't work with the Windows version, but it's still useful). One nice thing is it allows copy and paste direct to the panels, so it makes a pretty good substitute for the above.