workflow-extra-0.0.1: Utilities (e.g. Googling the clipboard contents) for the `workflow` pacakge

Safe HaskellNone
LanguageHaskell2010

Workflow.Derived

Description

 

Synopsis

Documentation

chord :: MonadFree WorkflowF m0 => [Modifier] -> Key -> m0 () Source #

copy :: MonadWorkflow m => m String Source #

access the currently selected region from Haskell, by copying to the clipboard, via the default keyboard shortcut. (waits 30ms)

paste :: MonadWorkflow m => m () Source #

paste via the default keyboard shortcut.

paste' :: MonadWorkflow m => m () Source #

"paste" by directly inserting the current clipboard contents.

ticks :: Num a => a -> a Source #

scrollOnce :: MonadFree WorkflowF m0 => MouseScroll -> m0 () Source #

scroll one "tick" of the wheel.

wait :: (MonadWorkflow m, Integral a) => a -> m () Source #

google :: MonadWorkflow m => String -> m () Source #

google a query. properly encodes the url.

delayWorkflowT :: Monad m => Int -> WorkflowT m a -> WorkflowT m a Source #

intersperse a delay between each action.

delayWorkflowT 1 $ do
 sendKeyChord [CommandModifier] VKey
 s <- getClipboard
 sendText s

is equivalent to:

do
 sendKeyChord [CommandModifier] VKey
 delay 1
 s <- getClipboard
 delay 1
 sendText s

digit2keychord :: (MonadThrow m, Num i, Eq i, Show i) => i -> m KeyChord Source #