| Copyright | (c) Eric Mertens, 2016 |
|---|---|
| License | ISC |
| Maintainer | emertens@gmail.com |
| Safe Haskell | None |
| Language | Haskell2010 |
Client.WordCompletion
Description
This module provides the tab-completion logic used for nicknames and channels.
- wordComplete :: (String -> String) -> Bool -> [Identifier] -> EditBox -> Maybe EditBox
Documentation
Arguments
| :: (String -> String) | leading update operation |
| -> Bool | reversed |
| -> [Identifier] | possible completions |
| -> EditBox | |
| -> Maybe EditBox |
Perform word completion on a text box.
The leading update operation is applied to the result of tab-completion when tab completing from the beginning of the text box. This is useful when auto-completing a nick and including a trailing colon.
The reversed parameter indicates that tab-completion should return the
previous entry.