Permalink
Browse files

importing go2.pl into git

  • Loading branch information...
0 parents commit 620161bdb1edb8a292b9b0f482274fdc9a095ddb @cxreg committed Feb 22, 2012
Showing with 604 additions and 0 deletions.
  1. +46 −0 Changes
  2. +66 −0 README
  3. +492 −0 go2.pl
46 Changes
@@ -0,0 +1,46 @@
+1.0
+ - suggestion sorting has been totally reworked. it should pretty much DTRT
+ in most cases. for details see the chart in sub _match. among other
+ changes, window activity level is now taken into account.
+
+0.9
+ - bugfix: type sorting should come after exact match (thanks Juerd!)
+ - if your input has a second word, this word is assumed to be (at least
+ partially, front anchored) the network name and must match. this helps
+ disambiguate nicknames or channels across multiple networks in a
+ deterministic way if you don't want to tab cycle.
+
+0.8
+ - /go foobar<tab> now does The Right Thing, but only in 0.8.12 or better since
+ some of the required functionality wasn't available until then.
+ - small tweak to sorting, for when you type a channel's name without the #
+
+0.7
+ *** SCRIPT NAME CHANGE ***
+ - it turns out that there's already a go.pl which is similar, but not as advanced,
+ so this script is being renamed to go2.pl. The command itself has not changed,
+ however, and is still invoked as /go
+
+ - bugfix: squash extra results in tab-cycle when no input
+ - pressing Esc now lets you cancel
+ - less duplication in suggestions
+ - try to sort suggestions in a useful way
+ - argument form now has some better automagic matching logic (thanks to zigdon)
+
+0.6
+ - online help (/go help)
+ - allow argument to /go in order to jump directly to a location (/go #channel)
+
+0.5
+ - support matching 'tag' (network or server name)
+
+0.4
+ - display window number in suggestions and allow you to match on it
+
+0.3
+ - support ^U for clearing input
+
+0.2
+ - allow any submatch to be found, not just front-anchored
+ - display window tag (ircnet) in suggestion for disambiguation
+ - provide both name and item if both are set
66 README
@@ -0,0 +1,66 @@
+This makes switching windows in irssi easier.
+
+Install it like
+
+ mkdir -p ~/.irssi/scripts
+ cp go2.pl ~/.irssi/scripts
+
+
+Load it like
+
+ /script load go2
+
+If you want it automatically loaded for you, instead do
+
+ mkdir -p ~/.irssi/scripts/autorun/
+ ln -s ~/.irssi/scripts/go2.pl ~/.irssi/scripts/autorun/
+
+
+Use it like
+
+ /go<enter>
+
+ That's the actual enter key, not the string "<enter>". Duh.
+
+ You're then presented with a prompt
+
+ Goto:
+
+ Start typing the name of a window, its item (channel, nickname, etc), its
+ number, or its connected network. go2.pl will attempt to guess what you
+ are looking for and suggest it in inverse text. Pressing tab will cycle
+ through its possible suggestions. Pressing enter again will select the
+ currently suggested window or item and switch to it for you.
+
+
+If you prefer, you can enter your destination with the command such as
+
+ /go #channel<enter>
+
+ In this case, if it finds exactly one match, you'll go directly to it. If
+ not, you'll go to the prompt with any possible suggestions presented as usual.
+
+
+If you are using irssi 0.8.12 or better, you can also do
+
+ /go something<tab>
+
+ and it will try to guess what you meant, or else take you to the prompt.
+
+
+If you type a space and a second word, the second word is assumed to be a
+network name, which helps disambiguate your input and reduce the amount of
+tab cycling you have to do
+
+ /go foo bar
+
+
+There is online help which says more or less the same as what you read here,
+available as
+
+ /go help
+
+
+You might also find it useful to bind to a key, such as
+
+ /bind meta-w /go
Oops, something went wrong.

0 comments on commit 620161b

Please sign in to comment.