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:binding

func ( *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())
}