bubbletui

package
v0.38.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Editor added in v0.38.0

type Editor struct {
	// contains filtered or unexported fields
}

func NewEditor added in v0.38.0

func NewEditor(kb *command.TUIKeyMap) Editor

func (*Editor) Blur added in v0.38.0

func (e *Editor) Blur()

func (*Editor) Focus added in v0.38.0

func (e *Editor) Focus() tea.Cmd

func (Editor) Init added in v0.38.0

func (e Editor) Init() tea.Cmd

func (*Editor) SetHeight added in v0.38.0

func (e *Editor) SetHeight(h int)

func (*Editor) SetWidth added in v0.38.0

func (e *Editor) SetWidth(w int)

func (Editor) Update added in v0.38.0

func (e Editor) Update(msg tea.Msg) (Editor, tea.Cmd)

func (Editor) View added in v0.38.0

func (e Editor) View() string

type Mode added in v0.38.0

type Mode int
const (
	NormalMode Mode = iota
	InsertMode
)

type Model

type Model struct {
	// contains filtered or unexported fields
}

func NewModel

func NewModel(c *client.Client, kb *command.TUIKeyMap) (*Model, error)

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) Run

func (m *Model) Run() error

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type ResultSet added in v0.38.0

type ResultSet struct {
	// contains filtered or unexported fields
}

func NewResultSet added in v0.38.0

func NewResultSet(kb *command.TUIKeyMap) ResultSet

func (*ResultSet) Blur added in v0.38.0

func (r *ResultSet) Blur()

func (*ResultSet) Focus added in v0.38.0

func (r *ResultSet) Focus()

func (ResultSet) Init added in v0.38.0

func (r ResultSet) Init() tea.Cmd

func (*ResultSet) SetSize added in v0.38.0

func (r *ResultSet) SetSize(w, h int)

func (ResultSet) Update added in v0.38.0

func (r ResultSet) Update(msg tea.Msg) (ResultSet, tea.Cmd)

func (ResultSet) View added in v0.38.0

func (r ResultSet) View() string

type SidebarViewport added in v0.38.0

type SidebarViewport struct {
	// contains filtered or unexported fields
}

func NewSidebarViewport added in v0.38.0

func NewSidebarViewport(ctx context.Context, c *client.Client, kb *command.TUIKeyMap) (SidebarViewport, error)

func (*SidebarViewport) ActiveDatabase added in v0.38.0

func (s *SidebarViewport) ActiveDatabase() string

func (SidebarViewport) Init added in v0.38.0

func (s SidebarViewport) Init() tea.Cmd

func (*SidebarViewport) SetSize added in v0.38.0

func (s *SidebarViewport) SetSize(w, h int)

func (SidebarViewport) Update added in v0.38.0

func (s SidebarViewport) Update(msg tea.Msg) (SidebarViewport, tea.Cmd)

func (SidebarViewport) View added in v0.38.0

func (s SidebarViewport) View() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL