app

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppModel

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

func NewAppModel

func NewAppModel() AppModel

func (AppModel) Init

func (m AppModel) Init() tea.Cmd

func (AppModel) Update

func (m AppModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (AppModel) View

func (m AppModel) View() string

type ConfigState added in v0.2.0

type ConfigState struct {
	StoragePath   string
	SshKeyPath    string
	SshPubKeyPath string
	Encrypt       bool
}

type DashboardModel added in v0.2.0

type DashboardModel struct {
	List             list.Model
	Notes            []journal.NoteInfo
	Err              error
	SelectedNote     *journal.Note
	SelectedErr      error
	SelectedFilename string
	SelectedModTime  time.Time
}

func (*DashboardModel) Init added in v0.2.0

func (m *DashboardModel) Init(app *AppModel) tea.Cmd

func (*DashboardModel) Update added in v0.2.0

func (m *DashboardModel) Update(app *AppModel, msg tea.Msg) (tea.Cmd, bool)

func (*DashboardModel) View added in v0.2.0

func (m *DashboardModel) View(app *AppModel, layout layout.Layout) string

type EditorModel added in v0.2.0

type EditorModel struct {
	Title   textinput.Model
	Body    textarea.Model
	Created time.Time
	File    string
	Err     error
}

func (*EditorModel) Init added in v0.2.0

func (m *EditorModel) Init(app *AppModel) tea.Cmd

func (*EditorModel) Update added in v0.2.0

func (m *EditorModel) Update(app *AppModel, msg tea.Msg) (tea.Cmd, bool)

func (*EditorModel) View added in v0.2.0

func (m *EditorModel) View(app *AppModel, layout layout.Layout) string

type PrivacyModel added in v0.2.0

type PrivacyModel struct {
	Form *huh.Form
}

func (*PrivacyModel) Init added in v0.2.0

func (m *PrivacyModel) Init(app *AppModel) tea.Cmd

func (*PrivacyModel) Update added in v0.2.0

func (m *PrivacyModel) Update(app *AppModel, msg tea.Msg) (tea.Cmd, bool)

func (*PrivacyModel) View added in v0.2.0

func (m *PrivacyModel) View(app *AppModel, layout layout.Layout) string

type ScreenModel added in v0.2.0

type ScreenModel interface {
	Init(app *AppModel) tea.Cmd
	Update(app *AppModel, msg tea.Msg) (tea.Cmd, bool)
	View(app *AppModel, layout layout.Layout) string
}

type SettingsModel added in v0.2.0

type SettingsModel struct {
	Form *huh.Form
}

func (*SettingsModel) Init added in v0.2.0

func (m *SettingsModel) Init(app *AppModel) tea.Cmd

func (*SettingsModel) Update added in v0.2.0

func (m *SettingsModel) Update(app *AppModel, msg tea.Msg) (tea.Cmd, bool)

func (*SettingsModel) View added in v0.2.0

func (m *SettingsModel) View(app *AppModel, layout layout.Layout) string

type SetupModel added in v0.2.0

type SetupModel struct{}

func (*SetupModel) Init added in v0.2.0

func (m *SetupModel) Init(app *AppModel) tea.Cmd

func (*SetupModel) Update added in v0.2.0

func (m *SetupModel) Update(app *AppModel, msg tea.Msg) (tea.Cmd, bool)

func (*SetupModel) View added in v0.2.0

func (m *SetupModel) View(app *AppModel, layout layout.Layout) string

type StorageModel added in v0.2.0

type StorageModel struct {
	Form *huh.Form
}

func (*StorageModel) Init added in v0.2.0

func (m *StorageModel) Init(app *AppModel) tea.Cmd

func (*StorageModel) Update added in v0.2.0

func (m *StorageModel) Update(app *AppModel, msg tea.Msg) (tea.Cmd, bool)

func (*StorageModel) View added in v0.2.0

func (m *StorageModel) View(app *AppModel, layout layout.Layout) string

type ViewerModel added in v0.2.0

type ViewerModel struct {
	Viewport viewport.Model
	Title    string
	Note     *journal.Note
	Raw      string
}

func (*ViewerModel) Init added in v0.2.0

func (m *ViewerModel) Init(app *AppModel) tea.Cmd

func (*ViewerModel) Update added in v0.2.0

func (m *ViewerModel) Update(app *AppModel, msg tea.Msg) (tea.Cmd, bool)

func (*ViewerModel) View added in v0.2.0

func (m *ViewerModel) View(app *AppModel, layout layout.Layout) string

type WelcomeModel added in v0.2.0

type WelcomeModel struct{}

func (*WelcomeModel) Init added in v0.2.0

func (m *WelcomeModel) Init(app *AppModel) tea.Cmd

func (*WelcomeModel) Update added in v0.2.0

func (m *WelcomeModel) Update(app *AppModel, msg tea.Msg) (tea.Cmd, bool)

func (*WelcomeModel) View added in v0.2.0

func (m *WelcomeModel) View(app *AppModel, layout layout.Layout) string

Jump to

Keyboard shortcuts

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