glirc2

Copyright(c) Eric Mertens, 2016
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Client.WordCompletion

Description

This module provides the tab-completion logic used for nicknames and channels.

Synopsis

Documentation

wordComplete Source #

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.