Search and select windows similar to ido-mode for emacs
This script requires that you have first installed and loaded uberprompt.pl
Uberprompt can be downloaded from:
and follow the instructions at the top of that file or its README for installation.
If uberprompt.pl is available, but not loaded, this script will make one attempt to load it before giving up. This eliminates the need to precisely arrange the startup order of your scripts.
/bind ^G /ido_switch_start [options]
^G is a key of your choice.
C-g (or whatever you've set the above bind to),
enters IDO window switching mode.
You can then type either a search string,
or use one of the additional key-bindings to change the behaviour of the search.
C-h provides online help regarding the possible interactive options.
It is possible to pass arguments to the
which correspond to some of the interactively settable parameters listed below.
The following options are available:
Search through only channels.
Search through only queries.
search both queries and channels (Default).
Lmit search to only window items with activity.
Enable exact-substring matching
Enable flex-string matching
If neither of
-flex are given,
the default is the value of
NOTE: When entering window switching mode,
the contents of your input line will be saved and cleared,
to avoid visual clutter whilst using the switching interface.
It will be restored once you exit the mode using either
The following key-bindings are available only once the mode has been activated:
Exit the mode without changing windows.
Exit, as above.
Rotate the list of window candidates forward by one item
Rotate the list of window candidates backward by one item
Toggle 'Active windows only' filter
Switch between 'Flex' and 'Exact' matching.
Select a network or server to filter candidates by
Clear the current search string
Cycle between showing only queries, channels, or all.
Filter candidates by current search string, and then reset the search string
Select the current head of the candidate list (the green one)
Select the current head of the list, without exiting the switching mode. The head is then moved one place to the right, allowing one to cycle through channels by repeatedly pressing space.
[currently in development] displays all possible completions at the bottom of the current window.
- All other keys (
a-z, A-Z, etc)
Add that character to the current search string.
- Using C-e (show actives), followed by repeatedly pressing space will cycle through all your currently active windows.
- If you enter a search string fragment, and realise that more than one candidate is still presented, rather than delete the whole string and modify it, you can use C-SPC to 'lock' the current matching candidates, but allow you to search through those matches alone.
Based originally on window_switcher.pl script Copyright 2007 Wouter Coekaerts
Primary functionality Copyright 2010-2011 Tom Feist
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- FIXED Sometimes selecting a channel with the same name on a different network will take you to the wrong channel.
- DONE C-g - cancel
- DONE C-spc - narrow
- DONE flex matching (on by default, but optional)
- TODO server/network narrowing
- DONE colourised output (via uberprompt)
- DONE C-r / C-s rotate matches
- DONE toggle queries/channels
- DONE remove inputline content, restore it afterwards.
- TODO tab - display all possibilities in window (clean up afterwards) how exactly will this work?
- DONE sort by recent activity/recently used windows (separate commands?)
- TODO need to be able to switch ordering of active ones (numerical, or most recently active, priority to PMs/hilights, etc?)
- DONE should space auto-move forward to next window for easy stepping through sequential/active windows?