| Copyright | Max Magorsch <max@magorsch.de> |
|---|---|
| License | BSD-style (see LICENSE) |
| Maintainer | Max Magorsch <max@magorsch.de> |
| Stability | unstable |
| Portability | unportable |
| Safe Haskell | None |
| Language | Haskell2010 |
TaskMonad.Prompt
Contents
Description
TaskMonad.Prompt provides wrappers around XMonad.Prompt.Input for usage with taskwarrior
Documentation
Arguments
| :: [(String -> Bool, X ())] | a list of tuples which contain a condition for an action as well as the action |
| -> X () | the resulting TaskWarrior prompt |
A wrapper around customPrompt that can be used to execute taskwarrior
as well as custom commands.
You can specify a list of tuples which contain custom actions as well as conditions for the custom actions, like this:
taskwarriorPrompt [(\x -> x == "processInput", processInput)]
However, if none of the specified actions is true, a default action will be executed. The default action shows taskwarrior reports in a scratchpad and executes all the other commands silently.
Screenshots
TaskMonad.Prompt in action:
