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 ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Editor ¶
type Editor struct { // Maybe move this to another type that represents the REPL cycle as a whole, not just the // read/edit portion represented by the Editor type. AfterCommand []func(src parse.Source, duration float64, err error) // contains filtered or unexported fields }
Editor is the interactive line editor for Elvish.
func NewEditor ¶
NewEditor creates a new editor. The TTY is used for input and output. The Evaler is used for syntax highlighting, completion, and calling callbacks. The Store is used for saving and retrieving command and directory history.
func (*Editor) Ns ¶
Ns returns a namespace for manipulating the editor from Elvish code.
See https://elv.sh/ref/edit.html for the Elvish API.
Source Files
¶
- binding_map.go
- buf_to_html.go
- buffer_builtins.go
- builtins.go
- command_api.go
- complete_getopt.go
- completion.go
- config_api.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
- repl.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 filter implements the Elvish filter DSL.
|
Package filter implements the Elvish filter DSL. |
Package highlight provides an Elvish syntax highlighter.
|
Package highlight provides an Elvish syntax highlighter. |