Copyright | (c) 2007 Valery V. Vorotyntsev |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | Valery V. Vorotyntsev <valery.vv@gmail.com> |
Portability | non-portable (uses "manpath" and "bash") |
Safe Haskell | None |
Language | Haskell2010 |
A manual page prompt for XMonad window manager.
TODO
- narrow completions by section number, if the one is specified
(like
/etc/bash_completion
does)
Usage
- In your
~/.xmonad/xmonad.hs
:
import XMonad.Prompt import XMonad.Prompt.Man
- In your keybindings add something like:
, ((modm, xK_F1), manPrompt def)
For detailed instruction on editing the key binding see XMonad.Doc.Extending.
getCommandOutput :: String -> IO String Source #
Run a command using shell and return its output.
XXX Merge into Run
?
(Ask "gurus" whether evaluate (length ...)
approach is
better/more idiomatic.)
Instances
XPrompt Man Source # | |
Defined in XMonad.Prompt.Man showXPrompt :: Man -> String Source # nextCompletion :: Man -> String -> [String] -> String Source # commandToComplete :: Man -> String -> String Source # completionToCommand :: Man -> String -> String Source # |