Documentation
¶
Index ¶
- Constants
- type FilePicker
- type ModelsList
- type ModelsListItem
- type PresetsList
- type PresetsListItem
- type SessionListItem
- type SessionsList
- func (l *SessionsList) EditListView() string
- func (l *SessionsList) GetSelectedItem() (SessionListItem, bool)
- func (l SessionsList) GetWidth() int
- func (l SessionsList) IsFiltering() bool
- func (l *SessionsList) SetItems(items []list.Item)
- func (l *SessionsList) SetSelectedItem(id int)
- func (l *SessionsList) SetShowStatusBar(show bool)
- func (l *SessionsList) SetSize(w, h int)
- func (l SessionsList) Update(msg tea.Msg) (SessionsList, tea.Cmd)
- func (l SessionsList) VisibleItems() []list.Item
- type TextSelector
- func (s *TextSelector) AdjustScroll()
- func (s TextSelector) GetSelectedChars() string
- func (s TextSelector) GetSelectedLines() []string
- func (s TextSelector) Init() tea.Cmd
- func (s TextSelector) IsCharSelecting() bool
- func (s TextSelector) IsSelecting() bool
- func (s TextSelector) LinesSelected() int
- func (s *TextSelector) Reset()
- func (s TextSelector) SelectedCharCount() int
- func (s TextSelector) Update(msg tea.Msg) (TextSelector, tea.Cmd)
- func (s TextSelector) View() string
Constants ¶
View Source
const ( HighlightPrefix = " +" CharHighlightPrefix = "ch" CursorSymbol = "~" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilePicker ¶ added in v0.7.9
type FilePicker struct {
SelectedFile string
PrevView util.ViewMode
PrevInputData string
// contains filtered or unexported fields
}
func NewFilePicker ¶ added in v0.7.9
func NewFilePicker( prevView util.ViewMode, prevInput string, colors util.SchemeColors, ) FilePicker
func (FilePicker) Init ¶ added in v0.7.9
func (m FilePicker) Init() tea.Cmd
func (*FilePicker) SetSize ¶ added in v0.7.9
func (m *FilePicker) SetSize(w, h int)
func (FilePicker) Update ¶ added in v0.7.9
func (m FilePicker) Update(msg tea.Msg) (FilePicker, tea.Cmd)
func (FilePicker) View ¶ added in v0.7.9
func (m FilePicker) View() string
type ModelsList ¶
type ModelsList struct {
// contains filtered or unexported fields
}
func NewModelsList ¶
func NewModelsList(items []list.Item, w, h int, colors util.SchemeColors) ModelsList
func (*ModelsList) GetSelectedItem ¶
func (l *ModelsList) GetSelectedItem() (ModelsListItem, bool)
func (ModelsList) IsFiltering ¶
func (l ModelsList) IsFiltering() bool
func (ModelsList) Update ¶
func (l ModelsList) Update(msg tea.Msg) (ModelsList, tea.Cmd)
func (*ModelsList) View ¶
func (l *ModelsList) View() string
func (ModelsList) VisibleItems ¶ added in v0.8.3
func (l ModelsList) VisibleItems() []list.Item
type ModelsListItem ¶
func (ModelsListItem) FilterValue ¶
func (i ModelsListItem) FilterValue() string
type PresetsList ¶
type PresetsList struct {
// contains filtered or unexported fields
}
func NewPresetsList ¶
func NewPresetsList( items []list.Item, w, h int, currentId int, colors util.SchemeColors, service *settings.SettingsService, ) PresetsList
func (*PresetsList) GetSelectedItem ¶
func (l *PresetsList) GetSelectedItem() (PresetsListItem, bool)
func (PresetsList) IsFiltering ¶
func (l PresetsList) IsFiltering() bool
func (PresetsList) IsFirstPage ¶ added in v0.8.0
func (l PresetsList) IsFirstPage() bool
func (PresetsList) Update ¶
func (l PresetsList) Update(msg tea.Msg) (PresetsList, tea.Cmd)
func (*PresetsList) View ¶
func (l *PresetsList) View() string
func (PresetsList) VisibleItems ¶ added in v0.8.3
func (l PresetsList) VisibleItems() []list.Item
type PresetsListItem ¶
func (PresetsListItem) FilterValue ¶
func (i PresetsListItem) FilterValue() string
type SessionListItem ¶
func (SessionListItem) FilterValue ¶
func (i SessionListItem) FilterValue() string
type SessionsList ¶
type SessionsList struct {
// contains filtered or unexported fields
}
func NewSessionsList ¶
func NewSessionsList(items []list.Item, w, h int, colors util.SchemeColors) SessionsList
func (*SessionsList) EditListView ¶
func (l *SessionsList) EditListView() string
func (*SessionsList) GetSelectedItem ¶
func (l *SessionsList) GetSelectedItem() (SessionListItem, bool)
func (SessionsList) GetWidth ¶
func (l SessionsList) GetWidth() int
func (SessionsList) IsFiltering ¶
func (l SessionsList) IsFiltering() bool
func (*SessionsList) SetItems ¶
func (l *SessionsList) SetItems(items []list.Item)
func (*SessionsList) SetSelectedItem ¶ added in v0.8.3
func (l *SessionsList) SetSelectedItem(id int)
func (*SessionsList) SetShowStatusBar ¶
func (l *SessionsList) SetShowStatusBar(show bool)
func (*SessionsList) SetSize ¶
func (l *SessionsList) SetSize(w, h int)
func (SessionsList) Update ¶
func (l SessionsList) Update(msg tea.Msg) (SessionsList, tea.Cmd)
func (SessionsList) VisibleItems ¶ added in v0.8.3
func (l SessionsList) VisibleItems() []list.Item
type TextSelector ¶
type TextSelector struct {
Selection selection
CharSelection charSelection
// contains filtered or unexported fields
}
func NewTextSelector ¶
func NewTextSelector( w, h int, scrollPos int, mouseTopOffset int, mouseLeftOffset int, sessionData string, colors util.SchemeColors, ) TextSelector
func (*TextSelector) AdjustScroll ¶
func (s *TextSelector) AdjustScroll()
func (TextSelector) GetSelectedChars ¶ added in v0.8.3
func (s TextSelector) GetSelectedChars() string
func (TextSelector) GetSelectedLines ¶ added in v0.8.3
func (s TextSelector) GetSelectedLines() []string
func (TextSelector) Init ¶
func (s TextSelector) Init() tea.Cmd
func (TextSelector) IsCharSelecting ¶ added in v0.8.3
func (s TextSelector) IsCharSelecting() bool
func (TextSelector) IsSelecting ¶
func (s TextSelector) IsSelecting() bool
func (TextSelector) LinesSelected ¶ added in v0.8.3
func (s TextSelector) LinesSelected() int
func (*TextSelector) Reset ¶
func (s *TextSelector) Reset()
func (TextSelector) SelectedCharCount ¶ added in v0.8.3
func (s TextSelector) SelectedCharCount() int
func (TextSelector) Update ¶
func (s TextSelector) Update(msg tea.Msg) (TextSelector, tea.Cmd)
func (TextSelector) View ¶
func (s TextSelector) View() string
Click to show internal directories.
Click to hide internal directories.