file_panel

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EditorModel

type EditorModel struct {
	*model.BoxModel

	TextArea textarea.Model
}

func NewEditorModel

func NewEditorModel() EditorModel

func (*EditorModel) Blur

func (m *EditorModel) Blur()

func (*EditorModel) Focus

func (m *EditorModel) Focus()

func (EditorModel) Init

func (m EditorModel) Init() tea.Cmd

func (*EditorModel) Resize

func (m *EditorModel) Resize(width int, height int)

func (*EditorModel) Save

func (m *EditorModel) Save()

func (EditorModel) Update

func (m EditorModel) Update(msg tea.Msg) (EditorModel, tea.Cmd)

func (EditorModel) View

func (m EditorModel) View() string

type FilePanelModel

type FilePanelModel struct {
	*model.BaseModel
	Markdown MarkdownModel
	Editor   EditorModel
}

func New

func New() FilePanelModel

func (*FilePanelModel) Blur

func (m *FilePanelModel) Blur()

func (*FilePanelModel) Focus

func (m *FilePanelModel) Focus()

func (FilePanelModel) Init

func (m FilePanelModel) Init() tea.Cmd

func (*FilePanelModel) Resize

func (m *FilePanelModel) Resize(width int, height int)

func (FilePanelModel) Update

func (m FilePanelModel) Update(msg tea.Msg) (FilePanelModel, tea.Cmd)

func (FilePanelModel) View

func (m FilePanelModel) View() string

type MarkdownModel

type MarkdownModel struct {
	*model.BoxModel

	Viewport viewport.Model
	// contains filtered or unexported fields
}

func NewMarkdownModel

func NewMarkdownModel() MarkdownModel

func (MarkdownModel) Init

func (m MarkdownModel) Init() tea.Cmd

func (*MarkdownModel) Resize

func (m *MarkdownModel) Resize(width int, height int)

func (MarkdownModel) Update

func (m MarkdownModel) Update(msg tea.Msg) (MarkdownModel, tea.Cmd)

func (MarkdownModel) View

func (m MarkdownModel) View() string

Jump to

Keyboard shortcuts

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