<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>XMonad.Prompt.Window</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[ window.onload = function () {pageLoad();setSynopsis("mini_XMonad-Prompt-Window.html");}; //]]> </script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/XMonad-Prompt-Window.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">xmonad-contrib-0.11: Third party extensions for xmonad</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>unportable</td></tr><tr><th>Stability</th><td>unstable</td></tr><tr><th>Maintainer</th><td>Devin Mullins <me@twifkak.com> Andrea Rossato <andrea.rossato@unibz.it></td></tr><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">XMonad.Prompt.Window</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Usage </a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>xprompt operations to bring windows to you, and bring you to windows. </p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:windowPromptGoto">windowPromptGoto</a>, <a href="#v:windowPromptBringCopy">windowPromptBringCopy</a>, <a href="#v:windowPromptBring">windowPromptBring</a> :: <a href="XMonad-Prompt.html#t:XPConfig">XPConfig</a> -> <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:WindowPrompt">WindowPrompt</a> </li></ul></div><div id="interface"><h1 id="g:1">Usage </h1><div class="doc"><p>WindowPrompt brings windows to you and you to windows. That is to say, it pops up a prompt with window names, in case you forgot where you left your XChat. </p><p>You can use this module with the following in your <code>~/.xmonad/xmonad.hs</code>: </p><pre> import XMonad.Prompt import XMonad.Prompt.Window </pre><p>and in the keys definition: </p><pre> , ((modm .|. shiftMask, xK_g ), windowPromptGoto defaultXPConfig) , ((modm .|. shiftMask, xK_b ), windowPromptBring defaultXPConfig) </pre><p>The autoComplete option is a handy complement here: </p><pre> , ((modm .|. shiftMask, xK_g ), windowPromptGoto defaultXPConfig { autoComplete = Just 500000 } ) </pre><p>The '500000' is the number of microseconds to pause before sending you to your new window. This is useful so that you don't accidentally send some keystrokes to the selected client. </p><p>For detailed instruction on editing the key binding see <a href="XMonad-Doc-Extending.html#Editing_key_bindings">XMonad.Doc.Extending</a>. </p></div><div class="top"><p class="src"><a name="v:windowPromptGoto" class="def">windowPromptGoto</a>, <a name="v:windowPromptBringCopy" class="def">windowPromptBringCopy</a>, <a name="v:windowPromptBring" class="def">windowPromptBring</a> :: <a href="XMonad-Prompt.html#t:XPConfig">XPConfig</a> -> <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/XMonad-Prompt-Window.html#windowPromptGoto" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:WindowPrompt" class="def">WindowPrompt</a> <a href="src/XMonad-Prompt-Window.html#WindowPrompt" class="link">Source</a></p><div class="subs instances"><p id="control.i:WindowPrompt" class="caption collapser" onclick="toggleSection('i:WindowPrompt')">Instances</p><div id="section.i:WindowPrompt" class="show"><table><tr><td class="src"><a href="XMonad-Prompt.html#t:XPrompt">XPrompt</a> <a href="XMonad-Prompt-Window.html#t:WindowPrompt">WindowPrompt</a></td><td class="doc empty"> </td></tr></table></div></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.10.0</p></div></body></html>