Skip to content
This repository was archived by the owner on Apr 17, 2020. It is now read-only.
This repository was archived by the owner on Apr 17, 2020. It is now read-only.

[PATCH] Add signal for paste detection events #531

@irssibot

Description

@irssibot

The 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions