Documentation ¶
Overview ¶
Package edit implements the line editor for Elvish.
The line editor is based on the cli package, which implements a general, Elvish-agnostic line editor, and multiple "addon" packages. This package glues them together and provides Elvish bindings for them.
Index ¶
- Variables
- type BindingMap
- func (bt BindingMap) Assoc(k, v interface{}) (interface{}, error)
- func (bt BindingMap) Dissoc(k interface{}) interface{}
- func (bt BindingMap) GetKey(k ui.Key) eval.Callable
- func (bt BindingMap) HasKey(k interface{}) bool
- func (bt BindingMap) Index(index interface{}) (interface{}, error)
- func (bt BindingMap) Repr(indent int) string
- type Editor
Constants ¶
This section is empty.
Variables ¶
var EmptyBindingMap = BindingMap{vals.EmptyMap}
Functions ¶
This section is empty.
Types ¶
type BindingMap ¶
BindingMap is a special Map that converts its key to ui.Key and ensures that its values satisfy eval.CallableValue.
func MakeBindingMap ¶
func MakeBindingMap(raw hashmap.Map) (BindingMap, error)
func (BindingMap) Assoc ¶
func (bt BindingMap) Assoc(k, v interface{}) (interface{}, error)
Assoc converts the index to ui.Key, ensures that the value is CallableValue, uses the Assoc of the inner Map and converts the result to a BindingTable.
func (BindingMap) Dissoc ¶
func (bt BindingMap) Dissoc(k interface{}) interface{}
Dissoc converts the key to ui.Key and calls the Dissoc method of the inner map.
func (BindingMap) HasKey ¶
func (bt BindingMap) HasKey(k interface{}) bool
func (BindingMap) Index ¶
func (bt BindingMap) Index(index interface{}) (interface{}, error)
Index converts the index to ui.Key and uses the Index of the inner Map.
func (BindingMap) Repr ¶
func (bt BindingMap) Repr(indent int) string
Repr returns the representation of the binding table as if it were an ordinary map keyed by strings.
type Editor ¶
type Editor struct {
// contains filtered or unexported fields
}
Editor is the interface line editor for Elvish.
Source Files ¶
- binding_map.go
- buf_to_html.go
- builtins.go
- command_api.go
- complete_getopt.go
- completion.go
- config_api.go
- default_bindings.go
- editor.go
- highlight.go
- hist_store.go
- histwalk.go
- insert_api.go
- instant.go
- key_binding.go
- listing.go
- listing_custom.go
- minibuf.go
- navigation.go
- ns_helper.go
- prompt.go
- state_api.go
- store_api.go
- vars.go
Directories ¶
Path | Synopsis |
---|---|
Package complete implements the code completion algorithm for Elvish.
|
Package complete implements the code completion algorithm for Elvish. |
Package highlight provides an Elvish syntax highlighter.
|
Package highlight provides an Elvish syntax highlighter. |