From 2858ab897a6a604f40412995491bbedf3b3b569d Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Thu, 23 Dec 2010 20:52:22 +0000 Subject: ido_switch: searching by number now shows all items having that number as a prefix. --- ido-mode/ido_switcher.pl | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'ido-mode') 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 # @@ -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) { -- cgit v1.2.3