All the Irssi bugs should go here, please select the proper version when reporting the bug.
Please see the Irssi core http://www.irssi.org/ChangeLog for recent updates.
Please see the Irssi core http://www.irssi.org/ChangeLog for recent updates.
FS#531 - [PATCH] Add signal for paste detection events
Attached to Project:
Irssi core bugs
Opened by David Leadbeater (dgl) - Monday, 17 September 2007, 20:19 GMT+2
Opened by David Leadbeater (dgl) - Monday, 17 September 2007, 20:19 GMT+2
|
DetailsThe attached patch adds two signals, "gui paste detected" and "gui paste flush" that allows a script to intercept certain paste events. It doesn't intercept the normal paste key (^K) but adds two more keys that scripts can use (^O and ^P).
It currently hardcodes the keys that are allowed, I don't like that much but I can't think of a nice way to make it configurable. (I guess a perl function to register interest, but that seems like a huge amount of effort for something so simple.) I've written a script to use this, you can find it at http://dgl.cx/irssi/pastie.pl It would be nice to see this in Irssi core, as I think the script could be quite useful. |
This task depends upon
Comment by Matt Sparks (ms) -
Friday, 28 August 2009, 09:05 GMT+2
+1
irssi-paste-signal.patch