<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Brandon, thank you so much for this. (It had landed in my spam folder so I only found it now.)</span></div><div><br><span></span></div><div><span>After adding that to my xmonad.hs I get these errors:</span></div><div><br><span></span></div>xmonad.hs:68:17: Not in scope: `doTo'<br><br>xmonad.hs:68:35: Not in scope: `getSortByIndex'<br><br>xmonad.hs:68:67: Not in scope: `shift'<br><br>Please check the file for errors.<br><br>I checked the header of xmonad.hs and I am importing the file you mentioned:<br><br>import Control.OldException<br>import Control.Monad<br><br>import XMonad<br>import XMonad.Hooks.EwmhDesktops<br>import qualified XMonad.StackSet as W<br>import XMonad.Actions.CycleRecentWS<br>import XMonad.Config.Gnome<br>import XMonad.Hooks.DynamicLog<br>import qualified XMonad.StackSet as W<br>import
 XMonad.Util.EZConfig<br>import XMonad.Actions.CycleWS<br>import XMonad.ManageHook<br>import XMonad.Hooks.ManageHelpers<br>import XMonad.Layout.ShowWName<br>import XMonad.Hooks.ManageDocks<br>import XMonad.Util.Run(spawnPipe)<br>import System.IO<br><br>so I wonder why this is happening?<br><br>thank you for any help!<br>~l<br><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Brandon Allbery &lt;allbery.b@gmail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Mike Meyer &lt;mwm@mired.org&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> xmonad@haskell.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, December 29, 2011 2:57 AM<br> <b><span style="font-weight:
 bold;">Subject:</span></b> Re: [xmonad] switching to the workspace where a window just went?<br> </font> <br>
<meta http-equiv="x-dns-prefetch-control" content="off"><div id="yiv14264721"><div dir="ltr"><br><div class="yiv14264721gmail_quote"><div>Looking at the source to cycleWS, looks like what you want is something like</div><div><br></div><div>&gt; ,("C-&lt;F1&gt;", doTo Next EmptyWS getSortByIndex $ \ws -&gt; windows (shift ws) &gt;&gt;</div><div>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; windows (greedyView ws))</div><div><br></div></div>-- <br>brandon s allbery &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a rel="nofollow" ymailto="mailto:allbery.b@gmail.com" target="_blank" href="mailto:allbery.b@gmail.com">allbery.b@gmail.com</a><br>
wandering unix systems administrator (available) &nbsp; &nbsp; (412) 475-9364 vm/sms<br><br>
</div>
</div><meta http-equiv="x-dns-prefetch-control" content="on"><br>_______________________________________________<br>xmonad mailing list<br><a ymailto="mailto:xmonad@haskell.org" href="mailto:xmonad@haskell.org">xmonad@haskell.org</a><br><a href="http://www.haskell.org/mailman/listinfo/xmonad" target="_blank">http://www.haskell.org/mailman/listinfo/xmonad</a><br><br><br> </div> </div>  </div></body></html>