yi-0.6.5.0: The Haskell-Scriptable Editor

Safe HaskellNone

Yi.MiniBuffer

Synopsis

Documentation

spawnMinibufferE :: String -> KeymapEndo -> EditorM BufferRefSource

Open a minibuffer window with the given prompt and keymap The third argument is an action to perform after the minibuffer is opened such as move to the first occurence of a searched for string. If you don't need this just supply return ()

withMinibuffer :: String -> (String -> YiM [String]) -> (String -> YiM ()) -> YiM ()Source

withMinibuffer prompt completer act: open a minibuffer with prompt. Once a string s is obtained, run act s. completer can be used to complete functions: it returns a list of possible matches.

withMinibufferGen :: String -> (String -> YiM [String]) -> String -> (String -> YiM String) -> (String -> YiM ()) -> YiM ()Source

withMinibufferGen proposal getHint prompt completer act: open a minibuffer with prompt, and initial content proposal. Once a string s is obtained, run act s. completer can be used to complete inputs by returning an incrementally better match, and getHint can give an immediate feedback to the user on the current input.

withMinibufferFin :: String -> [String] -> (String -> YiM ()) -> YiM ()Source

Open a minibuffer, given a finite number of suggestions.

matchingBufferNames :: String -> YiM [String]Source

Returns all the buffer names.

newtype t ::: doc Source

Tag a type with a documentation

Constructors

Doc 

Fields

fromDoc :: t
 

Instances

Typeable2 ::: 
Eq t => Eq (::: t doc) 
Num t => Num (::: t doc) 
Show x => Show (::: x t) 
IsString t => IsString (::: t doc) 
(DocType doc, Promptable t) => Promptable (::: t doc) 

data LineNumber Source

Instances

DocType LineNumber 

data RegexTag Source

Instances

data ToKill Source

Instances

DocType ToKill