// Command nav runs the navigation mode of the line editor.
package main import ( ) func () { := cli.NewApp(cli.AppSpec{}) := mode.NewNavigation(, mode.NavigationSpec{ Bindings: tk.MapBindings{ term.K('x'): func(tk.Widget) { .CommitCode() }, }, }) .SetAddon(, false) , := .ReadCode() fmt.Println("code:", ) if != nil { fmt.Println("err", ) } }