From 06eab3f18d685aeb1729ec029f922603a61eb976 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 17 Dec 2017 01:31:45 +0100 Subject: Add help Irssi help accessible from `/help vimput`. Describes the command and lets users know that they should bind a shortcut in order to use the plugin. --- vimput.pl | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'vimput.pl') diff --git a/vimput.pl b/vimput.pl index b3f6b80..3903610 100644 --- a/vimput.pl +++ b/vimput.pl @@ -189,6 +189,33 @@ sub is_ok_message { } +Irssi::command_bind('help', sub { + if ($_[0] !~ /^vimput\s*$/) { + return; + } + + my $help = < sub { write_input(Irssi::parse_special('$L', undef, 0)); open_tmux_and_update_input_line_when_finished(); -- cgit v1.2.3