Documentation
¶
Index ¶
- Constants
- func FileColor(ti *teatree.TreeItem) lipgloss.Style
- func FileIcon(ti *teatree.TreeItem) string
- func FolderColor(ti *teatree.TreeItem) lipgloss.Style
- func FolderIcon(ti *teatree.TreeItem) string
- func GoFileColor(ti *teatree.TreeItem) lipgloss.Style
- func GoFileIcon(ti *teatree.TreeItem) string
- func TextColor(ti *teatree.TreeItem) lipgloss.Style
- type FileBrowserModel
- func (fbm *FileBrowserModel) Blur() tea.Cmd
- func (fbm *FileBrowserModel) Error() error
- func (fbm *FileBrowserModel) Focus() tea.Cmd
- func (fbm *FileBrowserModel) GetKey() string
- func (fbm *FileBrowserModel) GetValue() any
- func (fm *FileBrowserModel) Init() tea.Cmd
- func (fbm *FileBrowserModel) KeyBinds() []key.Binding
- func (fbm *FileBrowserModel) Run() error
- func (fbm *FileBrowserModel) Skip() bool
- func (fm *FileBrowserModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (fbm *FileBrowserModel) Value(value *string) *FileBrowserModel
- func (fm *FileBrowserModel) View() string
- func (fbm *FileBrowserModel) WithAccessible(accessible bool) huh.Field
- func (fbm *FileBrowserModel) WithHeight(height int) huh.Field
- func (fbm *FileBrowserModel) WithKeyMap(k *huh.KeyMap) huh.Field
- func (fbm *FileBrowserModel) WithPosition(p huh.FieldPosition) huh.Field
- func (fbm *FileBrowserModel) WithTheme(theme *huh.Theme) huh.Field
- func (fbm *FileBrowserModel) WithWidth(width int) huh.Field
Constants ¶
View Source
const GoGopher = "\ue724"
View Source
const GoGopherDev = "\ue626"
View Source
const GoTitle = "\U000F07D3"
View Source
const IconFile = "\U000F0214"
View Source
const IconFolder = "\U000F024B"
Variables ¶
This section is empty.
Functions ¶
func FolderIcon ¶
func GoFileIcon ¶
Types ¶
type FileBrowserModel ¶
func (*FileBrowserModel) Blur ¶
func (fbm *FileBrowserModel) Blur() tea.Cmd
func (*FileBrowserModel) Error ¶
func (fbm *FileBrowserModel) Error() error
func (*FileBrowserModel) Focus ¶
func (fbm *FileBrowserModel) Focus() tea.Cmd
func (*FileBrowserModel) GetKey ¶
func (fbm *FileBrowserModel) GetKey() string
GetKey returns the field's key.
func (*FileBrowserModel) GetValue ¶
func (fbm *FileBrowserModel) GetValue() any
GetValue returns the field's value.
func (*FileBrowserModel) Init ¶
func (fm *FileBrowserModel) Init() tea.Cmd
func (*FileBrowserModel) KeyBinds ¶
func (fbm *FileBrowserModel) KeyBinds() []key.Binding
func (*FileBrowserModel) Run ¶
func (fbm *FileBrowserModel) Run() error
func (*FileBrowserModel) Skip ¶
func (fbm *FileBrowserModel) Skip() bool
Skip returns whether this input should be skipped or not.
func (*FileBrowserModel) Value ¶
func (fbm *FileBrowserModel) Value(value *string) *FileBrowserModel
func (*FileBrowserModel) View ¶
func (fm *FileBrowserModel) View() string
func (*FileBrowserModel) WithAccessible ¶
func (fbm *FileBrowserModel) WithAccessible(accessible bool) huh.Field
WithAccessible sets the accessible mode of the input field.
func (*FileBrowserModel) WithHeight ¶
func (fbm *FileBrowserModel) WithHeight(height int) huh.Field
WithHeight sets the height of the input field.
func (*FileBrowserModel) WithKeyMap ¶
func (fbm *FileBrowserModel) WithKeyMap(k *huh.KeyMap) huh.Field
WithKeyMap sets the keymap on an input field.
func (*FileBrowserModel) WithPosition ¶
func (fbm *FileBrowserModel) WithPosition(p huh.FieldPosition) huh.Field
WithPosition sets the position of the input field.
Click to show internal directories.
Click to hide internal directories.