Documentation
¶
Index ¶
- type Console
- func (c *Console) AddOutput(line string)
- func (c *Console) ClearInput()
- func (c *Console) DeleteRune()
- func (c *Console) Exec(cmdLine string)
- func (c *Console) InsertRune(r rune)
- func (c *Console) NextHistory()
- func (c *Console) PrevHistory()
- func (c *Console) RenderBody(cursorOn bool) string
- func (c *Console) RenderHeader() string
- type Mode
- type Model
- type Pane
- func (p *Pane) Chdir(dir string) error
- func (p *Pane) ClearMarks()
- func (p *Pane) Current() *fs.Entry
- func (p *Pane) Down(n int)
- func (p *Pane) End()
- func (p *Pane) Home()
- func (p *Pane) MarkAll()
- func (p *Pane) MarkedEntries() []fs.Entry
- func (p *Pane) PageDown()
- func (p *Pane) PageUp()
- func (p *Pane) Reload()
- func (p *Pane) RenderHeader() string
- func (p *Pane) RenderRows() []RowInfo
- func (p *Pane) SelectedEntries() []fs.Entry
- func (p *Pane) ToggleMark()
- func (p *Pane) Up(n int)
- type RowInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Console ¶
type Console struct {
Output []string
Input []rune
Cursor int
Dir string
History []string
HistoryPos int
Scroll int
Active bool
Width int
Height int
// contains filtered or unexported fields
}
func NewConsole ¶
func (*Console) ClearInput ¶
func (c *Console) ClearInput()
func (*Console) DeleteRune ¶
func (c *Console) DeleteRune()
func (*Console) InsertRune ¶
func (*Console) NextHistory ¶
func (c *Console) NextHistory()
func (*Console) PrevHistory ¶
func (c *Console) PrevHistory()
func (*Console) RenderBody ¶
func (*Console) RenderHeader ¶
type Model ¶
type Model struct {
Left *Pane
Right *Pane
Console *Console
Focus int
Width int
Height int
// contains filtered or unexported fields
}
func (*Model) FocusedPane ¶
type Pane ¶
type Pane struct {
Dir string
Listing *fs.Listing
Cursor int
Offset int
Active bool
Width int
Height int
Marked map[string]bool
SortBy fs.SortMode
ShowDot bool
IsArchive bool
ArchivePath string
ArchiveRoot string
RealDir string
SavedCursor int
Filter string
PathHistory []string
}
func (*Pane) ClearMarks ¶
func (p *Pane) ClearMarks()
func (*Pane) MarkedEntries ¶
func (*Pane) RenderHeader ¶
func (*Pane) RenderRows ¶
func (*Pane) SelectedEntries ¶
func (*Pane) ToggleMark ¶
func (p *Pane) ToggleMark()
Click to show internal directories.
Click to hide internal directories.