Documentation ¶
Index ¶
Constants ¶
View Source
const (
Local = "local"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Status ¶
func NewStatus ¶
func NewStatus(app *tview.Application) *Status
NewStatus returns the status bar component. We display the current remote, path and selection and action in the status bar.
func (*Status) GetSelectedPath ¶
GetSelectedPath returns the selected path.
func (*Status) GetSelectedRemote ¶
GetSelectedRemote returns the selected remote.
func (*Status) SetLocation ¶
SetLocation is used to set the current location, which contains the remote and path.
type View ¶
func NewView ¶
func NewView(app *tview.Application, status *Status, remotes, localPath []string, remoteFilter *filter.Filter) *View
NewView returns a new view. To create a new view we have to pass the app so that we can stop the application in case of an error. It also requires the status compnent, the remotes and the current directory of the user.
Click to show internal directories.
Click to hide internal directories.