I wrote my own script, which operates as two commands: /ppaste to paste the same thing that middle-click / shift-insert would paste (the X "Primary" selection), and /bpaste to paste the same thing that control-v would paste (the X "clipBoard" selection).
Trailing whitespace is trimmed, and entirely blank lines are dropped.
This requires that the DISPLAY environment variable is set when invoking irssi, and that the program "xsel" is installed.
By default, pasting more than 4 lines requires confirmation by typing "/ppaste #" where # is the actual number of lines.
Install the script in the usual way (typically, copy to ~/.irssi/scrpts/autoload).
- jpaste_limit - minimum number of lines requiring confirmation
- jpaste_bcmd - command to get the text to paste for /bpaste
- jpaste_pcmd - command to get the text to paste for /ppaste
Files currently attached to this page:
Entry first conceived on 24 June 2014, 12:35 UTC, last modified on 24 June 2014, 12:45 UTC
Website Copyright © 2004-2017 Jeff Epler