Paste from Kate text editor.

Pastebin from Kate (KDE Text Editor).

You can paste straight from the Kate editor (KDE Text editor) using the simple instructions below:

Download the command line client.
Make sure you have the command line client working, from there it is very simple.
In the example below, it's called pastebin, and available in the PATH.

In Kate, choose Settings » Configure Kate » External Tools » New.
Fill in the dialog, as follows:

Label:
Pastebin selected (or anything else you like)

Script:
[ -n "%selection" ] && url=`echo "%selection" | pastebin` &&
kfmclient openURL $url

Executable:
pastebin

Save it, and you can quickly paste your selected text by choosing:
Tools » External Tools » Pastebin selected

 

Comments: 0