unison-cli-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Unison.CommandLine.FZFResolvers

Synopsis

Documentation

data FZFResolver Source #

Constructors

FZFResolver 

Fields

Instances

Instances details
Show FZFResolver Source # 
Instance details

Defined in Unison.CommandLine.FZFResolvers

definitionOptions :: OptionFetcher Source #

Select a definition from the given branch.

termDefinitionOptions :: OptionFetcher Source #

Select a term definition from the given branch. Returned names will match the provided Position type.

typeDefinitionOptions :: OptionFetcher Source #

Select a type definition from the given branch. Returned names will match the provided Position type.

namespaceOptions :: OptionFetcher Source #

Select a namespace from the given branch. Returned Path's will match the provided Position type.

projectNameOptions :: OptionFetcher Source #

All possible local project names E.g. '@unison/base'

projectBranchOptions :: OptionFetcher Source #

All possible local project/branch names. E.g. '@unisonbasemain'

projectBranchOptionsWithinCurrentProject :: OptionFetcher Source #

All possible local branch names within the current project. E.g. '@unisonbasemain'

fuzzySelectFromList :: [Text] -> FZFResolver Source #

Select a namespace from the given branch. Returned Path's will match the provided Position type.

multiResolver :: [OptionFetcher] -> FZFResolver Source #

Combine multiple option fetchers into one resolver.

projectAndOrBranchArg :: FZFResolver Source #

A project name, branch name, or both.

fuzzySelectHeader :: Text -> Text Source #

Exported from here just so the debug command and actual implementation can use the same messaging.

>>> fuzzySelectHeader "definition to view"
"Select a definition to view:"
>>> fuzzySelectHeader "alias name"
"Select an alias name:"