unison-cli-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Unison.CommandLine.FuzzySelect

Description

Command-line fuzzy selection of arbitrary values. Shells out to fzf for the actual selection.

Synopsis

Documentation

fuzzySelect :: forall a. Options -> (a -> Text) -> [a] -> IO (Maybe [a]) Source #

Allows prompting the user to interactively fuzzy-select a result from a list of options, currently shells out to fzf under the hood. If fzf is missing, or an error (other than ctrl-c) occurred, returns Nothing.

data Options Source #

Fuzzy Selection options

Constructors

Options