<br><div class="gmail_quote">On Wed, Feb 20, 2008 at 1:11 PM, brian <<a href="mailto:brianchina60221@gmail.com">brianchina60221@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Feb 20, 2008 5:06 PM, Spencer Janssen <<a href="mailto:sjanssen@cse.unl.edu">sjanssen@cse.unl.edu</a>> wrote:<br>
> On Wed, Feb 20, 2008 at 03:45:32PM +0800, brian wrote:<br>
</div><div class="Ih2E3d">> > But I wish it worked more like the Ion scratchpad. In that one, the<br>
> > floating rectangle was permanent, and the hotkey just switched to it.<br>
> > I'm trying to use the scratchpad to do 'vim ~/TODO' and it's a little<br>
> > troublesome because the hotkey starts another one rather than just<br>
> > causing the existing one appear.<br>
><br>
> Hmm, perhaps combine this with the new "run or raise" contrib?<br>
<br>
</div>OK, I did all the usual stuff except<br>
runOrRaise (XMonad.terminal conf ++ " -title todo -e vim -X ~/TODO")<br>
(title =? "todo"))<br>
<br>
That's pretty cool, but it switches focus to the scratchpad as opposed<br>
to bringing it to me. Still, progress.<br>
<div><div></div><div class="Wj3C7c"></div></div></blockquote><div><br>It should be possible to bring the window to you. Check out XMonad.Actions.WindowBringer -- it doesn't do what you want, but perhaps it will give you some ideas. Even better, it should probably be refactored to provide some more fundamental operations (there are actions to create a menu from which you can choose a window name to be brought to you -- but no simple function which, given a window name, will bring it to you). <br>
<br>-Brent<br></div></div>