app

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 21 Imported by: 2

Documentation

Overview

Package app is goful application components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Goful

type Goful struct {
	*filer.Filer
	// contains filtered or unexported fields
}

Goful represents a main application.

func NewGoful

func NewGoful(path string) *Goful

NewGoful creates a new goful client based recording a previous state.

func (*Goful) BulkRename

func (g *Goful) BulkRename()

BulkRename starts the bulk rename mode.

func (*Goful) ChangeWorkspaceTitle

func (g *Goful) ChangeWorkspaceTitle()

ChangeWorkspaceTitle starts the changing workspace title.

func (*Goful) Chdir

func (g *Goful) Chdir()

Chdir starts the change directory mode.

func (*Goful) Chmod

func (g *Goful) Chmod()

Chmod starts the change mode mode.

func (*Goful) ConfigFiler

func (g *Goful) ConfigFiler(f func(*Goful) widget.Keymap)

ConfigFiler sets a keymap function for the filer.

func (*Goful) ConfigShell

func (g *Goful) ConfigShell(config func(cmd string) []string)

ConfigShell sets a function that returns a shell name and options.

func (*Goful) ConfigTerminal

func (g *Goful) ConfigTerminal(config func(cmd string) []string)

ConfigTerminal sets a function that returns a terminal name and options.

func (*Goful) Copy

func (g *Goful) Copy()

Copy starts the copy mode.

func (*Goful) Disconnect

func (g *Goful) Disconnect()

Disconnect references to a next widget for exiting.

func (*Goful) Draw

func (g *Goful) Draw()

Draw all widgets.

func (*Goful) Glob

func (g *Goful) Glob()

Glob starts the glob mode.

func (*Goful) Globdir

func (g *Goful) Globdir()

Globdir starts the globdir mode.

func (*Goful) Input

func (g *Goful) Input(key string)

Input to a current widget.

func (*Goful) Menu

func (g *Goful) Menu(name string)

Menu runs a menu mode.

func (*Goful) Mkdir

func (g *Goful) Mkdir()

Mkdir starts the make directory mode.

func (*Goful) Move

func (g *Goful) Move()

Move starts the move mode.

func (*Goful) Next

func (g *Goful) Next() widget.Widget

Next returns a next widget for drawing and input.

func (*Goful) Quit

func (g *Goful) Quit()

Quit starts the quit mode.

func (*Goful) Remove

func (g *Goful) Remove()

Remove starts the remove mode.

func (*Goful) Rename

func (g *Goful) Rename()

Rename starts the rename mode.

func (*Goful) Resize

func (g *Goful) Resize(x, y, width, height int)

Resize all widgets.

func (*Goful) Run

func (g *Goful) Run()

Run the goful client.

func (*Goful) SetBorderStyle

func (g *Goful) SetBorderStyle(style widget.BorderStyle)

SetBorderStyle sets the filer border style.

func (*Goful) Shell

func (g *Goful) Shell(cmd string, offset ...int)

Shell starts the shell mode. The head of variadic arguments is used for cursor positioning.

func (*Goful) ShellSuspend

func (g *Goful) ShellSuspend(cmd string, offset ...int)

ShellSuspend starts the shell mode and suspends screen after running. The head of variadic arguments is used for cursor positioning.

func (*Goful) Spawn

func (g *Goful) Spawn(cmd string)

Spawn a process by the shell or the terminal.

func (*Goful) SpawnSuspend

func (g *Goful) SpawnSuspend(cmd string)

SpawnSuspend spawns a process and suspends screen.

func (*Goful) Touch

func (g *Goful) Touch()

Touch starts the touch file mode.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳