Documentation
¶
Overview ¶
Package diffview implements the split-pane local/remote diff screen.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadCmd ¶
func LoadCmd(host config.Host, sel *fs.SelectionState, cfg *config.MergedConfig) tea.Cmd
LoadCmd returns a tea.Cmd that connects to host and loads all diffs asynchronously. Marked directories are expanded recursively; remote-only files inside those directories are detected by walking the remote side as well.
Types ¶
type Model ¶
Model is the diff view screen.
func New ¶
New creates a Model with pre-loaded sessions. syncDirs are pre-filled by autoDir so the user starts with a sensible selection.
type MsgBackToBrowser ¶
type MsgBackToBrowser struct{}
MsgBackToBrowser is sent when the user quits the diff view.
type MsgBulkSyncDone ¶
type MsgBulkSyncDone struct {
Done int // number of successfully synced files
Errors []string // one entry per failed file
}
MsgBulkSyncDone is sent when bulk sync has finished.
type MsgDiffError ¶
type MsgDiffError struct{ Err error }
MsgDiffError is sent when SSH/SFTP connection or diff loading fails.
type MsgDiffLoaded ¶
MsgDiffLoaded is sent when all sessions have been computed. Conn is kept open for subsequent sync operations — caller must close it.
type MsgRefreshed ¶
MsgRefreshed is sent when a full diff refresh has completed.
type MsgSyncError ¶
type MsgSyncError struct{ Err error }
MsgSyncError is sent when a sync operation fails.