From 9ce081ca909be81e79ff98873eb4643e0a36d5b0 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Mon, 20 Sep 2010 19:26:47 +0100 Subject: added 'space' option to scrolled reminder to take you to the end of the scrollback buffer. Idea stolen from #irssi/Grawity ^_^ --- scrolled-reminder/scrolled_reminder.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scrolled-reminder') diff --git a/scrolled-reminder/scrolled_reminder.pl b/scrolled-reminder/scrolled_reminder.pl index 32b3bb5..b69e3df 100644 --- a/scrolled-reminder/scrolled_reminder.pl +++ b/scrolled-reminder/scrolled_reminder.pl @@ -155,6 +155,11 @@ sub handle_keypress { # and restore the prompt set_prompt(''); + } elsif ($key == 32) { + + $pending_input->{win_item}->command("scrollback end"); + Irssi::signal_stop(); + } else { #TODO: What should the behaviour of other keys be when we're @@ -168,7 +173,7 @@ sub handle_keypress { sub require_confirmation { # enable the key handler $active = 1; - set_prompt('Scrolled Warning: C-k to confirm, C-c to cancel'); + set_prompt('Scrolled Alert: C-k confirms, C-c cancels, SPC goes to end of buffer'); } -- cgit v1.2.3