Documentation ¶
Index ¶
- Variables
- func AppendCommandLister(f func(context.Context) ([]Element, error))
- func CommonPrefix(list []string) string
- func DirName(path string) string
- func KeyFuncCompletion(ctx context.Context, this *readline.Buffer) readline.Result
- type CustomCompleter
- type Element
- type Element1
- type Element2
- type EnvironmentVariable
- type IVariable
- type List
- type UncCompletion
Constants ¶
This section is empty.
Variables ¶
View Source
var CustomCompletion = map[string]CustomCompleter{
"set": &customComplete{Func: completionSet, Name: "Built-in `set` completer"},
"cd": &customComplete{Func: completionCd, Name: "Built-in `cd` completer"},
"env": &customComplete{Func: completionEnv, Name: "built-in `env` completer"},
"which": &customComplete{Func: completionWhich, Name: "built-in `which` completer"},
"pushd": &customComplete{Func: completionCd, Name: "Built-in `pushd` completer"},
"rmdir": &customComplete{Func: completionDir, Name: "Built-in `rmdir` completer"},
"rd": &customComplete{Func: completionDir, Name: "Built-in `rmdir` completer"},
"killall": &customComplete{Func: completionProcessName, Name: "Built-in `kill` completer"},
"taskkill": &customComplete{Func: completionTaskKill, Name: "Built-in `taskkill` completer"},
"start": &customComplete{Func: completionStart, Name: "built-in `start` completer"},
}
HookToList is the slice for Completion-Hook functions for users.
View Source
var IncludeHidden = false
View Source
var PercentVariables = []IVariable{ new(EnvironmentVariable), }
View Source
var UseSlash = false
Functions ¶
func AppendCommandLister ¶
AppendCommandLister is the function to append the environment variable name at seeing on command-name completion.
func CommonPrefix ¶
func KeyFuncCompletion ¶
Types ¶
type CustomCompleter ¶
type Element ¶
func ListUpFiles ¶
type EnvironmentVariable ¶
type EnvironmentVariable struct { }
func (*EnvironmentVariable) EachKey ¶
func (*EnvironmentVariable) EachKey(f func(name string))
func (*EnvironmentVariable) Lookup ¶
func (*EnvironmentVariable) Lookup(name string) string
type UncCompletion ¶
type UncCompletion int
const ( DoNotUncCompletion UncCompletion = iota AskDoUncCompletion DoUncCompletion )
Click to show internal directories.
Click to hide internal directories.