Documentation ¶
Index ¶
- func CommandPty(cmd string) error
- func ExecCommandString(cmd string) (string, error)
- func In(target string, source []string) bool
- func Run(unsearch []string, show bool)
- type TuiScreen
- func (t *TuiScreen) Clear()
- func (t *TuiScreen) Draw(x1, y1, x2, y2 int, text string)
- func (t *TuiScreen) Event()
- func (r *TuiScreen) Fd() int
- func (t *TuiScreen) FuzzySearch()
- func (t *TuiScreen) GetAllFiles(dirPth string, istop bool) error
- func (t *TuiScreen) GetCommand()
- func (t *TuiScreen) GetFiles(dirPath string) error
- func (t *TuiScreen) Gopsutil() error
- func (t *TuiScreen) HttpCode()
- func (t *TuiScreen) SetCursor(x, y int, value string)
- func (t *TuiScreen) Show()
- func (t *TuiScreen) ShowAllFiles()
- func (t *TuiScreen) ShowCount()
- func (t *TuiScreen) ShowFiles()
- func (t *TuiScreen) ShowResultFiles(up bool)
- func (t *TuiScreen) Sync()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandPty ¶
func ExecCommandString ¶
Types ¶
type TuiScreen ¶
type TuiScreen struct { EnableMouse bool // 开启鼠标可用 EnablePaste bool // 开启粘贴板可用 X int Y int Input []rune // 键盘输入结果 Files []string // 文件查询总结果 Total int SearchNum int SearchResult []string // 搜索临时结果 MaxContent int // 最多显示条数 CursorPos int // 搜索光标位置 0 < CursorPos <= MaxContent CurContent string Unsearch []string // contains filtered or unexported fields }
func (*TuiScreen) FuzzySearch ¶
func (t *TuiScreen) FuzzySearch()
func (*TuiScreen) GetAllFiles ¶
递归获取当前目录所有文件
func (*TuiScreen) GetCommand ¶
func (t *TuiScreen) GetCommand()
func (*TuiScreen) ShowAllFiles ¶
func (t *TuiScreen) ShowAllFiles()
Click to show internal directories.
Click to hide internal directories.