Versions in this module Expand all Collapse all v0 v0.8.0 Oct 1, 2026 v0.6.0 Sep 30, 2026 Changes in this version + func Highlighted(th *theme.Theme, src string) string + type HelpMsg struct + Help *nushell.Help + type Hover struct + Brief string + Desc string + From int + Help *nushell.Help + Text string + To int + type Hoverer interface + Hover func(ctx context.Context, src string, offset int) (Hover, bool) type Nu + func (n *Nu) Hover(ctx context.Context, src string, at int) (Hover, bool) type Providers + Hoverer Hoverer type View + After func(d time.Duration, msg tea.Msg) tea.Cmd + func (v *View) WordHelp() tea.Cmd v0.5.0 Sep 30, 2026 Changes in this version + const Window type Full + func (f *Full) Grid() Grid + type Grid interface + Append func(more []byte, n int, data []byte) + Entered func() bool + Hidden func(width int) int + Line func(i, from, rows, width int) string + Rows func() int + Scroll func(d int) bool + Top func() int type Host + Grid func(id int, data []byte, rows int) Grid type Kernel + Live int type State + Live bool + Rows int type View + func (v *View) Carry(id int, old, o *notebook.Output, more []byte) bool + func (v *View) FollowOutput() + func (v *View) GridAt(x, y int) (g Grid, gx, gy int, ok bool) + func (v *View) GridOrigin(g Grid) (x, y int, ok bool) + func (v *View) GridWidth() int + func (v *View) SelectGrid(g Grid) + func (v *View) SelectedGrid() Grid + func (v *View) Shows(g Grid) bool v0.4.0 Sep 29, 2026 v0.3.0 Sep 29, 2026 Changes in this version + const Back + func KeyLabel(k string) string + type Checker interface + Check func(ctx context.Context, src string) []Diagnostic + type Completer interface + Complete func(ctx context.Context, src string, offset int) []Completion + type Completion struct + Desc string + From int + Text string + To int + type Diagnostic struct + From int + Msg string + To int + type Drafter interface + Draft func(src string) []Span + type Entry struct + Cell int + Level int + Title string + type Full struct + Title string + func (f *Full) ContextLine(th *theme.Theme) (string, string) + func (f *Full) Cursor() (int, bool) + func (f *Full) Key(k tea.KeyPressMsg) (closed bool) + type Highlighter interface + Highlight func(ctx context.Context, src string) []Span + type Host interface + Cells func() []notebook.Cell + Edit func(id int, source string) + Kernel func() Kernel + Locale func() *locale.Locale + Output func(id int) *notebook.Output + Run func(command string) tea.Cmd + State func(id int) State + Theme func() *theme.Theme + type Instant interface + Instant func() bool + type Kernel struct + Busy bool + Clip int + Off string + Reactive bool + Waiting int + type Nu struct + func (n *Nu) Check(ctx context.Context, src string) []Diagnostic + func (n *Nu) Complete(ctx context.Context, src string, offset int) []Completion + func (n *Nu) Draft(src string) []Span + func (n *Nu) Highlight(ctx context.Context, src string) []Span + func (n *Nu) Instant() bool + func (n *Nu) SetWords(names []string, words []Word) + type NuSession struct + Runner nushell.Runner + Timeout time.Duration + func NewNuSession(r nushell.Runner) *NuSession + func (s *NuSession) Asking() bool + func (s *NuSession) For() *Nu + func (s *NuSession) SetOn(on bool) + type Providers struct + Checker Checker + Completer Completer + Highlighter Highlighter + type Span struct + From int + Kind theme.Syntax + To int + type State struct + Problem string + Running bool + Stale bool + Started time.Time + Waiting bool + type Tokens struct + func (Tokens) Highlight(_ context.Context, src string) []Span + func (Tokens) Instant() bool + type View struct + EditKeys map[string]string + Keys map[string]string + Providers Providers + func New(h Host) *View + func (v *View) Boxes(top int) []overlay.Box + func (v *View) Cell() (notebook.Cell, bool) + func (v *View) Click(x, y int, shift bool) tea.Cmd + func (v *View) CloseFull() + func (v *View) Commit() + func (v *View) Completions() ([]Completion, int) + func (v *View) ContextLine() (string, string) + func (v *View) Cursor() (x, y int, ok bool) + func (v *View) Diagnostic() string + func (v *View) Editing() bool + func (v *View) Fetch() tea.Cmd + func (v *View) Full() *Full + func (v *View) FullOpen() bool + func (v *View) Head() (name, text string) + func (v *View) Hidden(id int) bool + func (v *View) Key(k tea.KeyPressMsg) (tea.Cmd, bool) + func (v *View) Lines() []string + func (v *View) OpenFull() bool + func (v *View) Outline(cells bool) []Entry + func (v *View) Paste(text string) tea.Cmd + func (v *View) Pending() string + func (v *View) Range() (from, to int) + func (v *View) Resize(width, height int) + func (v *View) Reveal(id int) + func (v *View) RightClick(y int) + func (v *View) Rule(left, right string, width int) string + func (v *View) Select(i int, out bool) + func (v *View) SelectRange(from, to int) + func (v *View) Selected() (int, bool) + func (v *View) StartEdit() tea.Cmd + func (v *View) StopEdit() + func (v *View) ToggleHidden() + func (v *View) ToggleWhole() + func (v *View) Toolbar(width int) string + func (v *View) ToolbarAt(x, width int) string + func (v *View) Update(msg tea.Msg) (tea.Cmd, bool) + func (v *View) Wheel(y, d int) + func (v *View) Whole(id int) bool + type Word struct + Desc string + Text string + type Words func() []Word + func (ws Words) Complete(_ context.Context, src string, offset int) []Completion