Documentation
¶
Index ¶
- Variables
- func NewDefaultProfileStyles() (s types.DefaultItemStyles)
- func NewDefaultShellStyles() (s types.DefaultItemStyles)
- func NewProfileDelegateKeyMap() (*profiledelegateKeyMap, error)
- func NewShellDelegateKeyMap() (*shelldelegateKeyMap, error)
- type ProfileItemDelegate
- func (d ProfileItemDelegate) FullHelp() [][]key.Binding
- func (pd ProfileItemDelegate) Height() int
- func (d ProfileItemDelegate) Render(w io.Writer, m list.Model, index int, item list.Item)
- func (pd *ProfileItemDelegate) SetHeight(i int)
- func (pd *ProfileItemDelegate) SetSpacing(i int)
- func (d ProfileItemDelegate) ShortHelp() []key.Binding
- func (pd ProfileItemDelegate) Spacing() int
- func (pd ProfileItemDelegate) Update(msg tea.Msg, m *list.Model) tea.Cmd
- type ShellItemDelegate
- func (d ShellItemDelegate) FullHelp() [][]key.Binding
- func (pd ShellItemDelegate) Height() int
- func (d ShellItemDelegate) Render(w io.Writer, m list.Model, index int, item list.Item)
- func (pd *ShellItemDelegate) SetHeight(i int)
- func (pd *ShellItemDelegate) SetSpacing(i int)
- func (d ShellItemDelegate) ShortHelp() []key.Binding
- func (pd ShellItemDelegate) Spacing() int
- func (pd ShellItemDelegate) Update(msg tea.Msg, m *list.Model) tea.Cmd
- type StatusBarUpdate
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TitleStyle = lipgloss.NewStyle().MarginLeft(2).BorderStyle(lipgloss.RoundedBorder()). BorderForeground(lipgloss.Color("#40C1AC")).Align(lipgloss.Left) ItemStyle = lipgloss.NewStyle().PaddingLeft(4) SelectedItemStyle = lipgloss.NewStyle().PaddingLeft(2).Foreground(lipgloss.Color("170")) PaginationStyle = list.DefaultStyles().PaginationStyle.PaddingLeft(4) HelpStyle = list.DefaultStyles().HelpStyle.PaddingLeft(1).PaddingBottom(1).Faint(true).Align(lipgloss.Left) QuitTextStyle = lipgloss.NewStyle().Margin(1, 0, 2, 4) )
View Source
var ( ViewPortTitleStyle = func() lipgloss.Style { b := lipgloss.RoundedBorder() b.Right = "├" return lipgloss.NewStyle().BorderStyle(b).Padding(0, 1) }() ViewPortInfoStyle = func() lipgloss.Style { b := lipgloss.RoundedBorder() b.Left = "┤" return ViewPortTitleStyle.BorderStyle(b) }() )
View Source
var (
AppStyle = lipgloss.NewStyle().Padding(1, 2)
)
View Source
var BaseStyle = lipgloss.NewStyle(). BorderStyle(lipgloss.NormalBorder()). BorderForeground(lipgloss.Color("240"))
Functions ¶
func NewDefaultProfileStyles ¶
func NewDefaultProfileStyles() (s types.DefaultItemStyles)
func NewDefaultShellStyles ¶
func NewDefaultShellStyles() (s types.DefaultItemStyles)
func NewProfileDelegateKeyMap ¶
func NewProfileDelegateKeyMap() (*profiledelegateKeyMap, error)
func NewShellDelegateKeyMap ¶
func NewShellDelegateKeyMap() (*shelldelegateKeyMap, error)
Types ¶
type ProfileItemDelegate ¶
type ProfileItemDelegate struct { ShowDescription bool Styles types.DefaultItemStyles UpdateFunc func(msg tea.Msg, m *list.Model) tea.Cmd ShortHelpFunc func() []key.Binding FullHelpFunc func() [][]key.Binding // contains filtered or unexported fields }
func NewProfileItemDelegate ¶
func NewProfileItemDelegate(keys *profiledelegateKeyMap) (*ProfileItemDelegate, error)
func (ProfileItemDelegate) FullHelp ¶
func (d ProfileItemDelegate) FullHelp() [][]key.Binding
FullHelp returns the delegate's full help.
func (ProfileItemDelegate) Height ¶
func (pd ProfileItemDelegate) Height() int
func (*ProfileItemDelegate) SetHeight ¶
func (pd *ProfileItemDelegate) SetHeight(i int)
func (*ProfileItemDelegate) SetSpacing ¶
func (pd *ProfileItemDelegate) SetSpacing(i int)
SetSpacing sets the delegate's spacing.
func (ProfileItemDelegate) ShortHelp ¶
func (d ProfileItemDelegate) ShortHelp() []key.Binding
ShortHelp returns the delegate's short help.
func (ProfileItemDelegate) Spacing ¶
func (pd ProfileItemDelegate) Spacing() int
Spacing returns the delegate's spacing.
type ShellItemDelegate ¶
type ShellItemDelegate struct { ShowDescription bool Styles types.DefaultItemStyles UpdateFunc func(msg tea.Msg, m *list.Model) tea.Cmd ShortHelpFunc func() []key.Binding FullHelpFunc func() [][]key.Binding // contains filtered or unexported fields }
func NewShellItemDelegate ¶
func NewShellItemDelegate(keys *shelldelegateKeyMap) (*ShellItemDelegate, error)
func (ShellItemDelegate) FullHelp ¶
func (d ShellItemDelegate) FullHelp() [][]key.Binding
FullHelp returns the delegate's full help.
func (ShellItemDelegate) Height ¶
func (pd ShellItemDelegate) Height() int
func (*ShellItemDelegate) SetHeight ¶
func (pd *ShellItemDelegate) SetHeight(i int)
func (*ShellItemDelegate) SetSpacing ¶
func (pd *ShellItemDelegate) SetSpacing(i int)
SetSpacing sets the delegate's spacing.
func (ShellItemDelegate) ShortHelp ¶
func (d ShellItemDelegate) ShortHelp() []key.Binding
ShortHelp returns the delegate's short help.
func (ShellItemDelegate) Spacing ¶
func (pd ShellItemDelegate) Spacing() int
Spacing returns the delegate's spacing.
type StatusBarUpdate ¶
type StatusBarUpdate bool
Click to show internal directories.
Click to hide internal directories.