package fzf
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Fzf.Pick_from
Source
Pick_from
instructs Fzf
to choose from a given input and perhaps select an output that wasn't the string selected.
type _ t =
| Map : 'a Core.String.Map.t -> 'a t
(*
*)Map map
will sort the displayed map keys lexicographically and return the corresponding value.| Assoc : (string * 'a) list -> 'a t
(*
*)Assoc list
will displaylist
in an order preserving way, returning the corresponding'a
upon selection.| Inputs : string list -> string t
(*
*)Inputs strings
will displaystrings
to the user, order preserving. The string selected is returned.| Command_output : string -> string t
(*Command_output command
will executecommand
and display the results for selection, this is useful for interactive selection driven from another executable:command
will be run every time the query string changes.- All occurrences of "
q
" incommand
will be replaced with the current value of fzf's query string.
The selected line is returned as a string.
This mechanism uses the --bind flag with the
*)change
event (see `man 1 fzf` for more information about query strings and preview/bind).| Streaming : 'a Streaming.t -> 'a t
(*
*)Streaming
will read encoded strings fromreader
until the pipe is closed.