<br><div class="gmail_quote">On Wed, Feb 20, 2008 at 1:11 PM, brian &lt;<a href="mailto:brianchina60221@gmail.com">brianchina60221@gmail.com</a>&gt; 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 &lt;<a href="mailto:sjanssen@cse.unl.edu">sjanssen@cse.unl.edu</a>&gt; wrote:<br>
&gt; On Wed, Feb 20, 2008 at 03:45:32PM +0800, brian wrote:<br>
</div><div class="Ih2E3d">&gt; &gt; But I wish it worked more like the Ion scratchpad. In that one, the<br>
&gt; &gt; floating rectangle was permanent, and the hotkey just switched to it.<br>
&gt; &gt; I&#39;m trying to use the scratchpad to do &#39;vim ~/TODO&#39; and it&#39;s a little<br>
&gt; &gt; troublesome because the hotkey starts another one rather than just<br>
&gt; &gt; causing the existing one appear.<br>
&gt;<br>
&gt; Hmm, perhaps combine this with the new &quot;run or raise&quot; contrib?<br>
<br>
</div>OK, I did all the usual stuff except<br>
runOrRaise (XMonad.terminal conf ++ &quot; -title todo -e vim -X ~/TODO&quot;)<br>
(title =? &quot;todo&quot;))<br>
<br>
That&#39;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.&nbsp; Check out XMonad.Actions.WindowBringer -- it doesn&#39;t do what you want, but perhaps it will give you some ideas.&nbsp; 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).&nbsp; <br>
<br>-Brent<br></div></div>