Documentation ¶
Index ¶
- Variables
- type CmdLine
- type Entry
- type EntryManager
- func (e *EntryManager) Entries() []*Entry
- func (e *EntryManager) GetSelectEntry() *Entry
- func (e *EntryManager) RefreshView()
- func (e *EntryManager) RestorePos(path string)
- func (e *EntryManager) SetColumns()
- func (e *EntryManager) SetEntries(path string) []*Entry
- func (e *EntryManager) SetHeader()
- func (e *EntryManager) SetSearchWord(word string)
- func (e *EntryManager) SetSelectPos(path string)
- func (e *EntryManager) SetViewable(viewable bool)
- func (e *EntryManager) UpdateColor()
- type Gui
- func (gui *Gui) CmdLineKeybinding()
- func (gui *Gui) Confirm(message, doneLabel string, page tview.Primitive, doneFunc func() error)
- func (gui *Gui) EntryManagerKeybinding()
- func (gui *Gui) ExecCmd(attachStd bool, cmd string, args ...string) error
- func (gui *Gui) FocusPanel(p tview.Primitive)
- func (gui *Gui) Form(fieldLabel map[string]string, doneLabel, title, pageName string, ...)
- func (gui *Gui) GlobalKeybinding(event *tcell.EventKey)
- func (gui *Gui) InputPathKeybinding()
- func (gui *Gui) Message(message string, page tview.Primitive)
- func (gui *Gui) Modal(p tview.Primitive, width, height int) tview.Primitive
- func (gui *Gui) Run() error
- func (gui *Gui) Search()
- func (gui *Gui) SetKeybindings()
- func (gui *Gui) Stop()
- type History
- type HistoryManager
- type Preview
- type Register
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CmdLine ¶
type CmdLine struct {
*tview.InputField
}
func NewCmdLine ¶
func NewCmdLine() *CmdLine
type Entry ¶
type Entry struct { Name string // file name Path string // file path PathName string // file's path and name Access string Create string Change string Size int64 Permission string Owner string Group string Viewable bool IsDir bool }
Entry file or dir info
type EntryManager ¶
EntryManager file list
func NewEntryManager ¶
func NewEntryManager(enableIgnorecase bool) *EntryManager
NewEntryManager new entry list
func (*EntryManager) GetSelectEntry ¶
func (e *EntryManager) GetSelectEntry() *Entry
GetSelectEntry get selected entry
func (*EntryManager) RefreshView ¶
func (e *EntryManager) RefreshView()
func (*EntryManager) RestorePos ¶
func (e *EntryManager) RestorePos(path string)
RestorePos restore select position
func (*EntryManager) SetEntries ¶
func (e *EntryManager) SetEntries(path string) []*Entry
SetEntries set entries
func (*EntryManager) SetSearchWord ¶
func (e *EntryManager) SetSearchWord(word string)
func (*EntryManager) SetSelectPos ¶
func (e *EntryManager) SetSelectPos(path string)
SetSelectPos save select position
func (*EntryManager) SetViewable ¶
func (e *EntryManager) SetViewable(viewable bool)
func (*EntryManager) UpdateColor ¶
func (e *EntryManager) UpdateColor()
type Gui ¶
type Gui struct { InputPath *tview.InputField Register *Register HistoryManager *HistoryManager EntryManager *EntryManager Preview *Preview CmdLine *CmdLine App *tview.Application Pages *tview.Pages // contains filtered or unexported fields }
Gui gui have some manager
func (*Gui) CmdLineKeybinding ¶
func (gui *Gui) CmdLineKeybinding()
func (*Gui) EntryManagerKeybinding ¶
func (gui *Gui) EntryManagerKeybinding()
func (*Gui) FocusPanel ¶
func (*Gui) GlobalKeybinding ¶
globalKeybinding
func (*Gui) InputPathKeybinding ¶
func (gui *Gui) InputPathKeybinding()
func (*Gui) SetKeybindings ¶
func (gui *Gui) SetKeybindings()
type HistoryManager ¶
type HistoryManager struct {
// contains filtered or unexported fields
}
HistoryManager have the move history TODO limit max history
func NewHistoryManager ¶
func NewHistoryManager() *HistoryManager
NewHistoryManager new history manager
func (*HistoryManager) Previous ¶
func (h *HistoryManager) Previous() *History
Previous return the previous history
func (*HistoryManager) Save ¶
func (h *HistoryManager) Save(rowIdx int, path string)
Save save the move history
type Preview ¶
func NewPreview ¶
func NewPreview() *Preview
func (*Preview) ScrollDown ¶
func (p *Preview) ScrollDown()
func (*Preview) UpdateView ¶
type Register ¶
Register copy/paste file resource
func (*Register) ClearCopyResources ¶
func (r *Register) ClearCopyResources()
ClearCopyResources clear resouces
func (*Register) ClearMoveResources ¶
func (r *Register) ClearMoveResources()
ClearMoveResources clear resources
Click to show internal directories.
Click to hide internal directories.