Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Command-line fuzzy selection of arbitrary values. Shells out to fzf for the actual selection.
Synopsis
- fuzzySelect :: forall a. Options -> (a -> Text) -> [a] -> IO (Maybe [a])
- data Options = Options {}
- defaultOptions :: Options
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.
defaultOptions :: Options Source #
Default Options