yi-0.11.0: The Haskell-Scriptable Editor

Portabilityportable
Stabilityexperimental
Maintaineryi-devel@googlegroups.com
Safe HaskellNone

Yi.TextCompletion

Contents

Description

Module providing text completion functions.

Synopsis

Word completion

wordComplete' :: Bool -> YiM ()Source

mkWordCompleteSource

Arguments

:: YiM Text

Extract function

-> (Text -> YiM [Text])

Source function

-> ([Text] -> YiM ())

Message function

-> (Text -> Text -> Bool)

Predicate matcher

-> YiM Text 

Try to complete the current word with occurences found elsewhere in the editor. Further calls try other options.

resetComplete :: EditorM ()Source

Switch out of completion mode.