Documentation
¶
Overview ¶
Package app is goful application components.
Package app provides stub implementations for platforms where nsync is not available. [IMPL:NSYNC_OBSERVER] [IMPL:NSYNC_COPY_MOVE] [ARCH:NSYNC_INTEGRATION] [REQ:NSYNC_MULTI_TARGET]
Package app provides synchronized command operations across all panes. [IMPL:SYNC_EXECUTE] [ARCH:SYNC_MODE] [REQ:SYNC_COMMANDS]
Index ¶
- func ParseStartupDirs(args []string) ([]string, []string)
- func SeedStartupWorkspaces(g *Goful, dirs []string, debug bool) bool
- type Goful
- func (g *Goful) BulkRename()
- func (g *Goful) ChangeWorkspaceTitle()
- func (g *Goful) Chdir()
- func (g *Goful) Chmod()
- func (g *Goful) ConfigFiler(f func(*Goful) widget.Keymap)
- func (g *Goful) ConfigShell(config func(cmd string) []string)
- func (g *Goful) ConfigTerminal(config func(cmd string) []string)
- func (g *Goful) ContinueDiffSearch()
- func (g *Goful) Copy()
- func (g *Goful) CopyAll()
- func (g *Goful) DiffSearchStatus() string
- func (g *Goful) Disconnect()
- func (g *Goful) Draw()
- func (g *Goful) Glob()
- func (g *Goful) Globdir()
- func (g *Goful) HandleParentButtonPress()
- func (g *Goful) Help()
- func (g *Goful) Input(key string)
- func (g *Goful) IsDiffSearchActive() bool
- func (g *Goful) IsLinkedNav() bool
- func (g *Goful) IsSyncIgnoreFailures() bool
- func (g *Goful) Menu(name string)
- func (g *Goful) Mkdir()
- func (g *Goful) Move()
- func (g *Goful) MoveAll()
- func (g *Goful) MoveBottomLinked()
- func (g *Goful) MoveCursorLinked(amount int)
- func (g *Goful) MoveTopLinked()
- func (g *Goful) Next() widget.Widget
- func (g *Goful) PageDownLinked()
- func (g *Goful) PageUpLinked()
- func (g *Goful) Quit()
- func (g *Goful) Remove()
- func (g *Goful) Rename()
- func (g *Goful) Resize(x, y, width, height int)
- func (g *Goful) Run()
- func (g *Goful) SetBorderStyle(style widget.BorderStyle)
- func (g *Goful) SetLinkedNav(enabled bool)
- func (g *Goful) Shell(cmd string, offset ...int)
- func (g *Goful) ShellSuspend(cmd string, offset ...int)
- func (g *Goful) Spawn(cmd string)
- func (g *Goful) SpawnSuspend(cmd string)
- func (g *Goful) StartDiffSearch()
- func (g *Goful) StartSyncCopy(filename string, ignoreFailures bool)
- func (g *Goful) StartSyncDelete(filename string, ignoreFailures bool)
- func (g *Goful) StartSyncRename(filename string, ignoreFailures bool)
- func (g *Goful) SyncMode(ignoreFailures bool)
- func (g *Goful) ToggleLinkedNav() bool
- func (g *Goful) ToggleSyncIgnoreFailures() bool
- func (g *Goful) Touch()
- type SyncFailure
- type SyncResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseStartupDirs ¶
ParseStartupDirs normalizes positional CLI arguments into absolute directory paths while collecting warnings. [IMPL:WORKSPACE_START_DIRS] [ARCH:WORKSPACE_BOOTSTRAP] [REQ:WORKSPACE_START_DIRS]
func SeedStartupWorkspaces ¶
SeedStartupWorkspaces resizes the active workspace's directory windows so each entry maps to a positional CLI argument. Returns true when seeding occurs so callers can detect fallback scenarios. [IMPL:WORKSPACE_START_DIRS] [ARCH:WORKSPACE_BOOTSTRAP] [REQ:WORKSPACE_START_DIRS]
Types ¶
type Goful ¶
Goful represents a main application.
func (*Goful) ChangeWorkspaceTitle ¶
func (g *Goful) ChangeWorkspaceTitle()
ChangeWorkspaceTitle starts the changing workspace title.
func (*Goful) ConfigFiler ¶
ConfigFiler sets a keymap function for the filer.
func (*Goful) ConfigShell ¶
ConfigShell sets a function that returns a shell name and options.
func (*Goful) ConfigTerminal ¶
ConfigTerminal sets a function that returns a terminal name and options.
func (*Goful) ContinueDiffSearch ¶
func (g *Goful) ContinueDiffSearch()
ContinueDiffSearch continues the difference search from the current cursor position. Skips the file at cursor and finds the next difference. [IMPL:DIFF_SEARCH] [ARCH:DIFF_SEARCH] [REQ:DIFF_SEARCH]
func (*Goful) CopyAll ¶
func (g *Goful) CopyAll()
CopyAll displays a message that nsync is not available on this platform. [IMPL:NSYNC_COPY_MOVE] [ARCH:NSYNC_INTEGRATION] [REQ:NSYNC_MULTI_TARGET]
func (*Goful) DiffSearchStatus ¶
DiffSearchStatus returns the current diff search status text for the header. [IMPL:DIFF_SEARCH] [ARCH:DIFF_SEARCH] [REQ:DIFF_SEARCH]
func (*Goful) Disconnect ¶
func (g *Goful) Disconnect()
Disconnect references to a next widget for exiting.
func (*Goful) HandleParentButtonPress ¶
func (g *Goful) HandleParentButtonPress()
HandleParentButtonPress navigates to the parent directory, respecting Linked mode. When Linked mode is ON, navigates all windows to their respective parent directories. [IMPL:TOOLBAR_PARENT_BUTTON] [ARCH:TOOLBAR_LAYOUT] [REQ:TOOLBAR_PARENT_BUTTON]
func (*Goful) Help ¶
func (g *Goful) Help()
Help opens the Help popup displaying the keystroke catalog. [IMPL:HELP_POPUP] [ARCH:HELP_WIDGET] [REQ:HELP_POPUP]
func (*Goful) IsDiffSearchActive ¶
IsDiffSearchActive returns true if a difference search is currently active. [IMPL:DIFF_SEARCH] [ARCH:DIFF_SEARCH] [REQ:DIFF_SEARCH]
func (*Goful) IsLinkedNav ¶
IsLinkedNav returns true if linked navigation mode is enabled. [IMPL:LINKED_NAVIGATION] [ARCH:LINKED_NAVIGATION] [REQ:LINKED_NAVIGATION]
func (*Goful) IsSyncIgnoreFailures ¶
IsSyncIgnoreFailures returns true if ignore-failures mode is enabled for sync operations. [IMPL:TOOLBAR_IGNORE_FAILURES] [ARCH:TOOLBAR_LAYOUT] [REQ:TOOLBAR_SYNC_BUTTONS]
func (*Goful) MoveAll ¶
func (g *Goful) MoveAll()
MoveAll displays a message that nsync is not available on this platform. [IMPL:NSYNC_COPY_MOVE] [ARCH:NSYNC_INTEGRATION] [REQ:NSYNC_MULTI_TARGET]
func (*Goful) MoveBottomLinked ¶
func (g *Goful) MoveBottomLinked()
MoveBottomLinked moves cursor to bottom and syncs to other windows if linked mode is ON. [IMPL:LINKED_CURSOR_SYNC] [ARCH:LINKED_NAVIGATION] [REQ:LINKED_NAVIGATION]
func (*Goful) MoveCursorLinked ¶
MoveCursorLinked moves cursor and syncs to other windows if linked mode is ON. [IMPL:LINKED_CURSOR_SYNC] [ARCH:LINKED_NAVIGATION] [REQ:LINKED_NAVIGATION]
func (*Goful) MoveTopLinked ¶
func (g *Goful) MoveTopLinked()
MoveTopLinked moves cursor to top and syncs to other windows if linked mode is ON. [IMPL:LINKED_CURSOR_SYNC] [ARCH:LINKED_NAVIGATION] [REQ:LINKED_NAVIGATION]
func (*Goful) PageDownLinked ¶
func (g *Goful) PageDownLinked()
PageDownLinked moves cursor down a page and syncs to other windows if linked mode is ON. [IMPL:LINKED_CURSOR_SYNC] [ARCH:LINKED_NAVIGATION] [REQ:LINKED_NAVIGATION]
func (*Goful) PageUpLinked ¶
func (g *Goful) PageUpLinked()
PageUpLinked moves cursor up a page and syncs to other windows if linked mode is ON. [IMPL:LINKED_CURSOR_SYNC] [ARCH:LINKED_NAVIGATION] [REQ:LINKED_NAVIGATION]
func (*Goful) Run ¶
func (g *Goful) Run()
Run the goful client. [IMPL:EVENT_LOOP_SHUTDOWN] [ARCH:EVENT_LOOP_SHUTDOWN] [REQ:EVENT_LOOP_SHUTDOWN]
func (*Goful) SetBorderStyle ¶
func (g *Goful) SetBorderStyle(style widget.BorderStyle)
SetBorderStyle sets the filer border style.
func (*Goful) SetLinkedNav ¶
SetLinkedNav sets the linked navigation mode state. [IMPL:LINKED_NAVIGATION_AUTO_DISABLE] [ARCH:LINKED_NAVIGATION] [REQ:LINKED_NAVIGATION]
func (*Goful) Shell ¶
Shell starts the shell mode. The head of variadic arguments is used for cursor positioning.
func (*Goful) ShellSuspend ¶
ShellSuspend starts the shell mode and suspends screen after running. The head of variadic arguments is used for cursor positioning.
func (*Goful) SpawnSuspend ¶
SpawnSuspend spawns a process and suspends screen.
func (*Goful) StartDiffSearch ¶
func (g *Goful) StartDiffSearch()
StartDiffSearch begins a new difference search across all windows. Records initial directories and finds the first difference. [IMPL:DIFF_SEARCH] [ARCH:DIFF_SEARCH] [REQ:DIFF_SEARCH]
func (*Goful) StartSyncCopy ¶
StartSyncCopy initiates the sync copy operation. [IMPL:SYNC_EXECUTE] [ARCH:SYNC_MODE] [REQ:SYNC_COMMANDS] [IMPL:TOOLBAR_SYNC_COPY] [REQ:TOOLBAR_SYNC_BUTTONS]
func (*Goful) StartSyncDelete ¶
StartSyncDelete initiates the sync delete operation. [IMPL:SYNC_EXECUTE] [ARCH:SYNC_MODE] [REQ:SYNC_COMMANDS] [IMPL:TOOLBAR_SYNC_DELETE] [REQ:TOOLBAR_SYNC_BUTTONS]
func (*Goful) StartSyncRename ¶
StartSyncRename initiates the sync rename operation. [IMPL:SYNC_EXECUTE] [ARCH:SYNC_MODE] [REQ:SYNC_COMMANDS] [IMPL:TOOLBAR_SYNC_RENAME] [REQ:TOOLBAR_SYNC_BUTTONS]
func (*Goful) SyncMode ¶
SyncMode starts the sync command mode for synchronized operations across all panes. If ignoreFailures is true, operations continue even if some panes fail. [IMPL:SYNC_EXECUTE] [ARCH:SYNC_MODE] [REQ:SYNC_COMMANDS]
func (*Goful) ToggleLinkedNav ¶
ToggleLinkedNav toggles the linked navigation mode and returns the new state. [IMPL:LINKED_NAVIGATION] [ARCH:LINKED_NAVIGATION] [REQ:LINKED_NAVIGATION]
func (*Goful) ToggleSyncIgnoreFailures ¶
ToggleSyncIgnoreFailures toggles the ignore-failures mode and returns the new state. [IMPL:TOOLBAR_IGNORE_FAILURES] [ARCH:TOOLBAR_LAYOUT] [REQ:TOOLBAR_SYNC_BUTTONS]
type SyncFailure ¶
SyncFailure records a failure in a specific pane. [IMPL:SYNC_EXECUTE] [ARCH:SYNC_MODE] [REQ:SYNC_COMMANDS]
type SyncResult ¶
type SyncResult struct {
Succeeded int
Skipped int
Failures []SyncFailure
}
SyncResult holds the result of a sync operation. [IMPL:SYNC_EXECUTE] [ARCH:SYNC_MODE] [REQ:SYNC_COMMANDS]