picker

package module
v0.0.0-...-90a2aa6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilePicker

type FilePicker struct {
	*tview.TreeView
	// contains filtered or unexported fields
}

FilePicker ...

func NewFilePicker

func NewFilePicker(rootDir string) *FilePicker

NewFilePicker is a specialized modal to pick a file

func (*FilePicker) SetCancelFunc

func (p *FilePicker) SetCancelFunc(handler func()) *FilePicker

SetCancelFunc set handler to be called after user cancels file picker

func (*FilePicker) SetDoneFunc

func (p *FilePicker) SetDoneFunc(handler func(selected *os.File) error) *FilePicker

SetDoneFunc set handler to be called after user selects a file

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL