diff options
author | Tom Feist <shabble@metavore.org> | 2010-12-12 07:22:48 +0000 |
---|---|---|
committer | Tom Feist <shabble@metavore.org> | 2010-12-12 07:22:48 +0000 |
commit | 6d616715bb7816c493c99229f76300a6d87e5cf6 (patch) | |
tree | 74955a2c37f18c2d270416f922e204d334e6bc00 /ido-mode/ido_switcher.pl | |
parent | ido_switch: C-e toggles selection of only active windows (diff) | |
download | irssi-scripts-6d616715bb7816c493c99229f76300a6d87e5cf6.tar.gz irssi-scripts-6d616715bb7816c493c99229f76300a6d87e5cf6.zip |
ido_switch: SPC jumps to window without exiting mode, RET no longer sends
inputline to server
Diffstat (limited to '')
-rw-r--r-- | ido-mode/ido_switcher.pl | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/ido-mode/ido_switcher.pl b/ido-mode/ido_switcher.pl index dc7c542..291d07f 100644 --- a/ido-mode/ido_switcher.pl +++ b/ido-mode/ido_switcher.pl @@ -248,7 +248,6 @@ sub ido_switch_select { Irssi::command("WINDOW ITEM GOTO " . $selected->{itemname}); } - ido_switch_exit(); } sub ido_switch_exit { @@ -424,6 +423,9 @@ sub handle_keypress { _debug_print "selecting history and quitting" if DEBUG; my $selected_win = get_window_match(); ido_switch_select($selected_win); + + ido_switch_exit(); + Irssi::signal_stop(); return; } @@ -476,7 +478,15 @@ sub handle_keypress { return; } - if ($key >= 32) { # printable + if ($key == 32) { # space + my $selected_win = get_window_match(); + ido_switch_select($selected_win); + Irssi::signal_stop(); + + return; + } + + if ($key > 32) { # printable $search_str .= chr($key); update_matches(); |