Documentation
¶
Index ¶
- func AskDialogCmd(id string, message string, options []string) tea.Cmd
- func CutCmd() tea.Cmd
- func DeleteCmd() tea.Cmd
- func GetPreviewCmd(ctx context.Context, path string) tea.Cmd
- func HandleBackCmd(navi *nav.Nav, currentSelected []string, cursor string) tea.Cmd
- func HandleFwdCmd(navi *nav.Nav, currentSelected []string, cursor string) tea.Cmd
- func HandleNavCmd(navi *nav.Nav, currentSelected []string, path string, cursor string) tea.Cmd
- func HandleReloadCmd(navi *nav.Nav, currentSelected []string, cursor string) tea.Cmd
- func InternalCopyCmd() tea.Cmd
- func InternalPasteCmd() tea.Cmd
- func MkDirCmd() tea.Cmd
- func NavBackCmd() tea.Cmd
- func NavDownCmd(name string) tea.Cmd
- func NavFwdCmd() tea.Cmd
- func NavHomeCmd() tea.Cmd
- func NavOtherCmd(path string) tea.Cmd
- func NavUpCmd() tea.Cmd
- func NewEntryCmd(newEntry entry.Entry) tea.Cmd
- func NewFileCmd() tea.Cmd
- func NewNotificationCmd(message string) tea.Cmd
- func RenameCmd() tea.Cmd
- func SelectedCmd(selected map[string]struct{}) tea.Cmd
- func ToggleShowHiddenCmd() tea.Cmd
- type AskDialogGeneric
- type ClearKeyMsg
- type CutMsg
- type DeleteMsg
- type DirChangedMsg
- type GetPreviewMsg
- type InternalCopyMsg
- type InternalPasteMsg
- type MkDirMsg
- type NavBackMsg
- type NavDownMsg
- type NavFwdMsg
- type NavHomeMsg
- type NavOtherMsg
- type NavUpMsg
- type NewEntryMsg
- type NewFileMsg
- type NewNotificationMsg
- type RenameMsg
- type SelectedMsg
- type ToggleShowHiddenMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CutCmd ¶
CutCmd is used to create a command that will communicate to the main program that a "clipboard" cut operation is requested.
func DeleteCmd ¶
DeleteCmd is used to create a command that will communicate to the main program that a delete operation is requested.
func HandleBackCmd ¶
HandleBackCmd fetches the last state of the nav and returns a message to broadcast the new state
func HandleFwdCmd ¶
HandleFwdCmd fetches the forward state of the nav and returns a message to broadcast the new state
func HandleNavCmd ¶
HandleNavCmd fetches a new state of the nav and returns a message to broadcast the new state
func HandleReloadCmd ¶
HandleReloadCmd reloads the current directory and returns a message to broadcast the returned state state
func InternalCopyCmd ¶
InternalCopyCmd is used to create a command that will communicate to the main program that a "clipboard" copy operation is requested.
func InternalPasteCmd ¶
func MkDirCmd ¶
MkDirCmd is used to create a command that will communicate to the main program that a new directory operation is requested.
func NavBackCmd ¶
NavBackCmd is used to create a command that will communicate to the main program that a navigation back operation is requested.
func NavDownCmd ¶
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 ¶
NavFwdCmd is used to create a command that will communicate to the main program that a navigation forward operation is requested.
func NavHomeCmd ¶
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 ¶
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 ¶
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 NewFileCmd ¶
NewFileCmd is used to create a command that will communicate to the main program that a new file operation is requested.
func NewNotificationCmd ¶
NewNotificationCmd is used to create a command that will display a notification.
func RenameCmd ¶
RenameCmd is used to create a command that will communicate to the main program that a rename operation is requested.
func SelectedCmd ¶
func ToggleShowHiddenCmd ¶
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 ¶
DirChangedMsg is used to communicate that the CWD has changed
type GetPreviewMsg ¶
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 ¶
type NavBackMsg struct{}
NavBackMsg is used to communicate to the main program that a navigation back operation is requested.
type NavDownMsg ¶
type NavDownMsg struct {
}
NavDownMsg is used to communicate to the main program that a navigation to the selected directory is requested.
type NavFwdMsg ¶
type NavFwdMsg struct{}
NavFwdMsg is used to communicate to the main program that a navigation forward operation is requested.
type NavHomeMsg ¶
type NavHomeMsg struct{}
NavHomeMsg is used to communicate to the main program that a navigation to the home directory operation is requested.
type NavOtherMsg ¶
type NavOtherMsg struct {
}
NavOtherMsg is used to communicate to the main program that a navigation to a directory other than the current one
type NavUpMsg ¶
type NavUpMsg struct{}
NavUpMsg is used to communicate to the main program that a navigation to parent directory operation is requested.
type NewEntryMsg ¶
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.