Documentation ¶
Overview ¶
Package csv implements a csv bubble which renders a table with the content of the csv.
Index ¶
- Variables
- type Model
- func (m *Model) GotoBottom()
- func (m *Model) GotoTop()
- func (m Model) Init() tea.Cmd
- func (m *Model) NewStatusMessageCmd(s string) tea.Cmd
- func (m *Model) SetFileNameCmd(filename string) tea.Cmd
- func (m *Model) SetSizeCmd(w, h int) tea.Cmd
- func (m *Model) SetViewportDisabled(disabled bool)
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct { Viewport viewport.Model Filename string Table *table.Table StatusMessage string StatusMessageLifetime time.Duration ViewportDisabled bool Headers []string Records [][]string // contains filtered or unexported fields }
Model represents the properties of a code bubble.
func (*Model) GotoBottom ¶
func (m *Model) GotoBottom()
GotoBottom jumps to the bottom of the viewport.
func (*Model) NewStatusMessageCmd ¶
NewStatusMessage sets a new status message, which will show for a limited amount of time.
func (*Model) SetFileNameCmd ¶
SetFileName sets current file to highlight.
func (*Model) SetSizeCmd ¶
SetSize sets the size of the bubble.
func (*Model) SetViewportDisabled ¶
SetViewportDisabled toggles the state of the viewport.
Click to show internal directories.
Click to hide internal directories.