diff options
author | Tom Feist <shabble@cowu.be> | 2010-09-20 18:26:47 +0000 |
---|---|---|
committer | Tom Feist <shabble@cowu.be> | 2010-09-20 18:26:47 +0000 |
commit | 9ce081ca909be81e79ff98873eb4643e0a36d5b0 (patch) | |
tree | 086256ad251a45336f1ee8c0a83e4c79edc61349 /scrolled-reminder/scrolled_reminder.pl | |
parent | cleaned up formatting, referenced origin of url regex, and filled out script ... (diff) | |
download | irssi-scripts-9ce081ca909be81e79ff98873eb4643e0a36d5b0.tar.gz irssi-scripts-9ce081ca909be81e79ff98873eb4643e0a36d5b0.zip |
added 'space' option to scrolled reminder to take you to the end of the
scrollback buffer. Idea stolen from #irssi/Grawity ^_^
Diffstat (limited to 'scrolled-reminder/scrolled_reminder.pl')
-rw-r--r-- | scrolled-reminder/scrolled_reminder.pl | 7 |
1 files changed, 6 insertions, 1 deletions
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'); } |