aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Actions/Search.hs
diff options
context:
space:
mode:
authorsean.escriva <sean.escriva@gmail.com>2008-11-06 18:17:07 +0100
committersean.escriva <sean.escriva@gmail.com>2008-11-06 18:17:07 +0100
commit4d2d2104601e4deb942ae9d5dc1b90ec0ff9f591 (patch)
tree70b712fe9f6c9a3ddfdae322334eef239c118853 /XMonad/Actions/Search.hs
parent6da4f0aa01d54864bc284ba3ade454302720c989 (diff)
downloadXMonadContrib-4d2d2104601e4deb942ae9d5dc1b90ec0ff9f591.tar.gz
XMonadContrib-4d2d2104601e4deb942ae9d5dc1b90ec0ff9f591.tar.xz
XMonadContrib-4d2d2104601e4deb942ae9d5dc1b90ec0ff9f591.zip
documentation: XMonad.Util.Search.hs, add EZConfig keybindings example
darcs-hash:20081106171707-29414-80491e6712d2817887b7530ca2d6b992326f3a41.gz
Diffstat (limited to 'XMonad/Actions/Search.hs')
-rw-r--r--XMonad/Actions/Search.hs16
1 files changed, 16 insertions, 0 deletions
diff --git a/XMonad/Actions/Search.hs b/XMonad/Actions/Search.hs
index 534b8c8..71d1945 100644
--- a/XMonad/Actions/Search.hs
+++ b/XMonad/Actions/Search.hs
@@ -143,6 +143,22 @@ Then add the following to your key bindings:
> , ((0, xK_w), method S.wikipedia)
> ]
+Or in combination with XMonad.Util.EZConfig:
+
+> ...
+> ] -- end of regular keybindings
+> -- Search commands
+> ++ [("M-s " ++ k, S.promptSearch P.defaultXPConfig f) | (k,f) <- searchList ]
+> ++ [("M-S-s " ++ k, S.selectSearch f) | (k,f) <- searchList ]
+>
+> ...
+>
+> searchList :: [([Char], S.SearchEngine)]
+> searchList = [ ("g", S.google)
+> , ("h", S.hoohle)
+> , ("w", S.wikipedia)
+> ]
+
Make sure to set firefox to open new pages in a new window instead of
in a new tab: @Firefox -> Edit -> Preferences -> Tabs -> New pages
should be opened in...@