alfred-0.1: utility library for Alfred version 2

Safe HaskellNone

Alfred

Synopsis

Documentation

data Item Source

This type represents items that should be rendered by Alfred as the result of a script filter.

Constructors

Item 

data Icon Source

Represents icons of an item.

runScriptSource

Arguments

:: (String -> IO a)

query function

-> (a -> Items)

rendering function

-> IO () 

This function runs a script consisting of a query function and a rendering function. The query function takes string parameters and produces an output that is then passed to the rendering function to produce items that are then passed to Alfred.

runScript'Source

Arguments

:: ([String] -> IO a)

query function

-> (a -> Items)

rendering function

-> IO () 

This function runs a script consisting of a query function and a rendering function. The query function takes string parameters and produces an output that is then passed to the rendering function to produce items that are then passed to Alfred.

data MkSearch Source

This data type represents standard search scripts used by mkSearchItems.

Constructors

MkSearch 

Fields

searchURL :: Text -> Text
 
found :: Text -> Text
 
notFound :: Text -> Text