aboutsummaryrefslogtreecommitdiffstats
path: root/vimput.pl
diff options
context:
space:
mode:
Diffstat (limited to 'vimput.pl')
-rw-r--r--vimput.pl13
1 files changed, 4 insertions, 9 deletions
diff --git a/vimput.pl b/vimput.pl
index 6bb78fe..b3f6b80 100644
--- a/vimput.pl
+++ b/vimput.pl
@@ -189,12 +189,7 @@ sub is_ok_message {
}
-# TODO: Find out if it's possible to do this is a command
-Irssi::signal_add_last 'gui key pressed' => sub {
- my ($key) = @_;
-
- if ($key eq CTRL_X) {
- write_input(Irssi::parse_special('$L', undef, 0));
- open_tmux_and_update_input_line_when_finished();
- }
-};
+Irssi::command_bind('vimput' => sub {
+ write_input(Irssi::parse_special('$L', undef, 0));
+ open_tmux_and_update_input_line_when_finished();
+});