Documentation
¶
Index ¶
- Variables
- func InitialModel(firstFilePanelDirs []string, firstUseCheck, hasTrashCheck bool) tea.Model
- func IsTeaQuit(cmd tea.Cmd) bool
- func TeaUpdate(m *model, msg tea.Msg) (tea.Cmd, error)
- func TeaUpdateWithErrCheck(t *testing.T, m *model, msg tea.Msg) tea.Cmd
- func TestFilePreviewWithInvalidMode(t *testing.T)
Constants ¶
This section is empty.
Variables ¶
View Source
var LastTimeCursorMove = [2]int{int(time.Now().UnixMicro()), 0} //nolint: gochecknoglobals // TODO : Move to model struct
These represent model's state information, its not a global preperty
View Source
var ListeningMessage = true //nolint: gochecknoglobals // TODO : Move to model struct
View Source
var SampleDataBytes = []byte("This is sample") //nolint: gochecknoglobals // Effectively const
Functions ¶
func InitialModel ¶
Initialize and return model with default configs It returns only tea.Model because when it used in main, the return value is passed to tea.NewProgram() which accepts tea.Model Either way type 'model' is not exported, so there is not way main package can be aware of it, and use it directly
func TeaUpdate ¶ added in v1.3.0
TeaUpdate : Utility to send update to model , majorly used in tests Not using pointer receiver as this is more like a utility, than a member function of model TODO : Consider wrapping TeaUpdate with a helper that both forwards the return values and does a require.NoError(t, err)
func TeaUpdateWithErrCheck ¶ added in v1.3.0
func TestFilePreviewWithInvalidMode ¶ added in v1.3.2
Types ¶
This section is empty.
Source Files
¶
- config_function.go
- default_config.go
- file_operations.go
- file_operations_compress.go
- file_operations_extract.go
- file_panel.go
- function.go
- handle_file_operations.go
- handle_modal.go
- handle_panel_movement.go
- handle_panel_navigation.go
- handle_panel_up_down.go
- key_function.go
- model.go
- model_render.go
- model_render_test_unix.go
- test_utils.go
- type.go
- type_utils.go
- wheel_function.go
Click to show internal directories.
Click to hide internal directories.