TaskMonad-1.0.0: A collection of tools which can be used to access taskwarrior from xmonad.

CopyrightMax Magorsch <max@magorsch.de>
LicenseBSD-style (see LICENSE)
MaintainerMax Magorsch <max@magorsch.de>
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell2010

TaskMonad.Prompt

Contents

Description

TaskMonad.Prompt provides wrappers around XMonad.Prompt.Input for usage with taskwarrior

Synopsis

Documentation

taskwarriorPrompt Source #

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:

customPrompt Source #

Arguments

:: String

title that will be displayed in the prompt

-> [String]

completion list

-> (String -> X ())

action that takes the input of the prompt and returns and X ()

-> X ()

the action that shows the prompt

A wrapper around XMonad.Prompt.Input using a custom XPconfig