Help us shape the future of Go! Take the 2026 Go Developer Survey

message

package
v0.0.0-...-63b292e Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskDialogCmd

func AskDialogCmd(id string, message string, options []string) tea.Cmd

func CutCmd

func CutCmd() tea.Cmd

CutCmd is used to create a command that will communicate to the main program that a "clipboard" cut operation is requested.

func DeleteCmd

func DeleteCmd() tea.Cmd

DeleteCmd is used to create a command that will communicate to the main program that a delete operation is requested.

func GetPreviewCmd

func GetPreviewCmd(ctx context.Context, path string) tea.Cmd

func HandleBackCmd

func HandleBackCmd(navi *nav.Nav, currentSelected []string, cursor string) tea.Cmd

HandleBackCmd fetches the last state of the nav and returns a message to broadcast the new state

func HandleFwdCmd

func HandleFwdCmd(navi *nav.Nav, currentSelected []string, cursor string) tea.Cmd

HandleFwdCmd fetches the forward state of the nav and returns a message to broadcast the new state

func HandleNavCmd

func HandleNavCmd(navi *nav.Nav, currentSelected []string, path string, cursor string) tea.Cmd

HandleNavCmd fetches a new state of the nav and returns a message to broadcast the new state

func HandleReloadCmd

func HandleReloadCmd(navi *nav.Nav, currentSelected []string, cursor string) tea.Cmd

HandleReloadCmd reloads the current directory and returns a message to broadcast the returned state state

func InternalCopyCmd

func InternalCopyCmd() tea.Cmd

InternalCopyCmd is used to create a command that will communicate to the main program that a "clipboard" copy operation is requested.

func InternalPasteCmd

func InternalPasteCmd() tea.Cmd

func MkDirCmd

func MkDirCmd() tea.Cmd

MkDirCmd is used to create a command that will communicate to the main program that a new directory operation is requested.

func NavBackCmd() tea.Cmd

NavBackCmd is used to create a command that will communicate to the main program that a navigation back operation is requested.

func NavDownCmd(name string) tea.Cmd

NavDownCmd is used to create a command that will communicate to the main program that a navigation to the selected directory is requested.

func NavFwdCmd() tea.Cmd

NavFwdCmd is used to create a command that will communicate to the main program that a navigation forward operation is requested.

func NavHomeCmd() tea.Cmd

NavHomeCmd is used to create a command that will communicate to the main program that a navigation to the home directory operation is requested.

func NavOtherCmd(path string) tea.Cmd

NavOtherCmd is used to create a command that will communicate to the main program that a navigation to a directory other than the current one is requested.

func NavUpCmd() tea.Cmd

NavUpCmd is used to create a command that will communicate to the main program that a navigation to the parent directory operation is requested.

func NewEntryCmd

func NewEntryCmd(newEntry entry.Entry) tea.Cmd

func NewFileCmd

func NewFileCmd() tea.Cmd

NewFileCmd is used to create a command that will communicate to the main program that a new file operation is requested.

func NewNotificationCmd

func NewNotificationCmd(message string) tea.Cmd

NewNotificationCmd is used to create a command that will display a notification.

func RenameCmd

func RenameCmd() tea.Cmd

RenameCmd is used to create a command that will communicate to the main program that a rename operation is requested.

func SelectedCmd

func SelectedCmd(selected map[string]struct{}) tea.Cmd

func ToggleShowHiddenCmd

func ToggleShowHiddenCmd() tea.Cmd

ToggleShowHiddenCmd is used to create a command that will communicate to the main program that a toggle show hidden operation is requested.

Types

type AskDialogGeneric

type AskDialogGeneric struct {
	// contains filtered or unexported fields
}

func (AskDialogGeneric) ID

func (d AskDialogGeneric) ID() string

func (AskDialogGeneric) Message

func (d AskDialogGeneric) Message() string

func (AskDialogGeneric) Options

func (d AskDialogGeneric) Options() []string

type ClearKeyMsg

type ClearKeyMsg struct{}

type CutMsg

type CutMsg struct{}

CutMsg is used to communicate to the main program that a "clipboard" cut operation is requested.

type DeleteMsg

type DeleteMsg struct{}

DeleteMsg is used to communicate to the main program that a delete operation is requested.

type DirChangedMsg

type DirChangedMsg struct {
	nav.DirState
}

DirChangedMsg is used to communicate that the CWD has changed

type GetPreviewMsg

type GetPreviewMsg struct {
	Ctx  context.Context
	Path string
}

type InternalCopyMsg

type InternalCopyMsg struct{}

InternalCopyMsg is used to communicate to the main program that a "clipboard" copy operation is requested.

type InternalPasteMsg

type InternalPasteMsg struct{}

type MkDirMsg

type MkDirMsg struct{}

MkDirMsg is used to communicate to the main program that a new directory operation is requested.

type NavBackMsg struct{}

NavBackMsg is used to communicate to the main program that a navigation back operation is requested.

type NavDownMsg struct {
	Name string
}

NavDownMsg is used to communicate to the main program that a navigation to the selected directory is requested.

type NavFwdMsg struct{}

NavFwdMsg is used to communicate to the main program that a navigation forward operation is requested.

type NavHomeMsg struct{}

NavHomeMsg is used to communicate to the main program that a navigation to the home directory operation is requested.

type NavOtherMsg struct {
	Path string
}

NavOtherMsg is used to communicate to the main program that a navigation to a directory other than the current one

type NavUpMsg struct{}

NavUpMsg is used to communicate to the main program that a navigation to parent directory operation is requested.

type NewEntryMsg

type NewEntryMsg struct {
	Entry entry.Entry
}

type NewFileMsg

type NewFileMsg struct{}

NewFileMsg is used to communicate to the main program that a new file operation is requested.

type NewNotificationMsg

type NewNotificationMsg struct {
	Message string
}

type RenameMsg

type RenameMsg struct{}

RenameMsg is used to communicate to the main program that a rename operation is requested.

type SelectedMsg

type SelectedMsg struct {
	// contains filtered or unexported fields
}

func (SelectedMsg) Selected

func (m SelectedMsg) Selected() map[string]struct{}

type ToggleShowHiddenMsg

type ToggleShowHiddenMsg struct{}

ToggleShowHiddenMsg is used to communicate to the main program that a toggle show hidden operation is requested.

Jump to

Keyboard shortcuts

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