Source File
command_api.go
Belonging Package
src.elv.sh/pkg/edit
package edit// Implementation of the editor "command" mode.import ()//elvdoc:var command:binding//// Key bindings for command mode. This is currently a very small subset of Vi// command mode bindings.//// @cf edit:command:start//elvdoc:fn command:start//// Enter command mode. This mode is intended to emulate Vi's command mode, but// it is very incomplete right now.//// @cf edit:command:bindingfunc ( *Editor, *eval.Evaler, eval.NsBuilder) {:= newBindingVar(emptyBindingsMap):= newMapBindings(, , ).AddNs("command",eval.NsBuilder{"binding": ,}.AddGoFns("<edit:command>:", map[string]interface{}{"start": func() {:= mode.NewStub(mode.StubSpec{Bindings: ,Name: " COMMAND ",}).app.SetAddon(, false)},}).Ns())}
The pages are generated with Golds v0.2.8-preview. (GOOS=darwin GOARCH=arm64)