package fzf
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Fzf.Pick_fromSource
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 mapwill sort the displayed map keys lexicographically and return the corresponding value.| Assoc : (string * 'a) list -> 'a t(*
*)Assoc listwill displaylistin an order preserving way, returning the corresponding'aupon selection.| Inputs : string list -> string t(*
*)Inputs stringswill displaystringsto the user, order preserving. The string selected is returned.| Command_output : string -> string t(*Command_output commandwill executecommandand display the results for selection, this is useful for interactive selection driven from another executable:commandwill be run every time the query string changes.- All occurrences of "
q" incommandwill 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
*)changeevent (see `man 1 fzf` for more information about query strings and preview/bind).| Streaming : 'a Streaming.t -> 'a t(*
*)Streamingwill read encoded strings fromreaderuntil the pipe is closed.