aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2010-12-23 20:52:22 +0000
committerTom Feist <shabble@metavore.org>2010-12-23 20:52:22 +0000
commit2858ab897a6a604f40412995491bbedf3b3b569d (patch)
treee1b1a0418b8aff8d2b4470e24eb4506aa9305dc1
parentido_switch: hilight individual parts of names that correspond to the search (diff)
downloadirssi-scripts-2858ab897a6a604f40412995491bbedf3b3b569d.tar.gz
irssi-scripts-2858ab897a6a604f40412995491bbedf3b3b569d.zip
ido_switch: searching by number now shows all items having that number as a prefix.
-rw-r--r--ido-mode/ido_switcher.pl9
1 files changed, 3 insertions, 6 deletions
diff --git a/ido-mode/ido_switcher.pl b/ido-mode/ido_switcher.pl
index a148503..c06a7f4 100644
--- a/ido-mode/ido_switcher.pl
+++ b/ido-mode/ido_switcher.pl
@@ -11,12 +11,9 @@
#
# USAGE:
#
-# * Setup: /bind ^R /history_search_start
+# * Setup: /bind ^G /ido_switch_start
#
-# * Then type ctrl-R and type what you're searching for
-#
-# * You can cycle through multiple matches with ^R (older matches), and
-# ^S (newer matches)
+# * Then type ctrl-G and type what you're searching for
#
# Based in part on window_switcher.pl script Copyright 2007 Wouter Coekaerts
# <coekie@irssi.org>
@@ -353,7 +350,7 @@ sub update_matches {
@search_matches =
grep {
- _check_active($_) and $_->{num} == 0+$search_str
+ _check_active($_) and $_->{num} =~ m/\Q$search_str\E/
} @window_cache;
} elsif ($ido_use_flex) {