Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data FZFResolver = FZFResolver {
- getOptions :: OptionFetcher
- definitionOptions :: OptionFetcher
- termDefinitionOptions :: OptionFetcher
- typeDefinitionOptions :: OptionFetcher
- namespaceOptions :: OptionFetcher
- projectDependencyResolver :: FZFResolver
- projectNameOptions :: OptionFetcher
- projectBranchOptions :: OptionFetcher
- projectBranchOptionsWithinCurrentProject :: OptionFetcher
- fuzzySelectFromList :: [Text] -> FZFResolver
- multiResolver :: [OptionFetcher] -> FZFResolver
- definitionResolver :: FZFResolver
- typeDefinitionResolver :: FZFResolver
- termDefinitionResolver :: FZFResolver
- namespaceResolver :: FZFResolver
- namespaceOrDefinitionResolver :: FZFResolver
- projectAndOrBranchArg :: FZFResolver
- projectOrBranchResolver :: FZFResolver
- projectBranchResolver :: FZFResolver
- projectBranchWithinCurrentProjectResolver :: FZFResolver
- projectNameResolver :: FZFResolver
- fuzzySelectHeader :: Text -> Text
Documentation
data FZFResolver Source #
FZFResolver | |
|
Instances
Show FZFResolver Source # | |
Defined in Unison.CommandLine.FZFResolvers showsPrec :: Int -> FZFResolver -> ShowS # show :: FZFResolver -> String # showList :: [FZFResolver] -> ShowS # |
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:"