Documentation
¶
Index ¶
- type FileExplorer
- func (m *FileExplorer) FindWithRelativePath(path string)
- func (m FileExplorer) Init() tea.Cmd
- func (m *FileExplorer) Refresh()
- func (m *FileExplorer) Resize(w int, h int)
- func (m *FileExplorer) SelectionChanged(node *filetree.Node) tea.Cmd
- func (m *FileExplorer) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m FileExplorer) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileExplorer ¶
type FileExplorer struct {
IsFocused bool
Width int
Height int
Vp viewport.Model
Root *filetree.Node
CurrentNode *filetree.Node
CurrentIndex int
VisibleNodes []*filetree.Node
LastSelection string
Keymap keymap.ExplorerKeyMap
// contains filtered or unexported fields
}
func NewFileExplorer ¶
func NewFileExplorer(w int, h int) *FileExplorer
func (*FileExplorer) FindWithRelativePath ¶
func (m *FileExplorer) FindWithRelativePath(path string)
func (FileExplorer) Init ¶
func (m FileExplorer) Init() tea.Cmd
func (*FileExplorer) Refresh ¶
func (m *FileExplorer) Refresh()
func (*FileExplorer) Resize ¶
func (m *FileExplorer) Resize(w int, h int)
func (*FileExplorer) SelectionChanged ¶
func (m *FileExplorer) SelectionChanged(node *filetree.Node) tea.Cmd
func (FileExplorer) View ¶
func (m FileExplorer) View() string
Click to show internal directories.
Click to hide internal directories.