Documentation
¶
Index ¶
Constants ¶
View Source
const ( NAME = iota DIR EXT )
View Source
const ( LANDING = iota QUICK CREATE SEARCH BROWSE EDIT QUIT )
Variables ¶
View Source
var ( ButtonStyle = lipgloss.NewStyle().Padding(0, 2).Border(lipgloss.RoundedBorder()).Align(lipgloss.Center) // ActiveButton = ButtonStyle.Foreground(lipgloss.Color("#FFFFFF")).Background(lipgloss.Color("#5A56E0")) ActiveButton = ButtonStyle. BorderStyle(lipgloss.RoundedBorder()). BorderForeground(lipgloss.Color("2")). Foreground(lipgloss.Color("default")). Background(lipgloss.Color("2")) InactiveButton = ButtonStyle.Foreground(lipgloss.Color("default")) HeaderStyle = lipgloss.NewStyle(). Padding(0, 1). Background(lipgloss.Color("2")). Foreground(lipgloss.Color("default")) InputHeaderStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("4")) InputStyle = lipgloss.NewStyle(). BorderStyle(lipgloss.RoundedBorder()). BorderForeground(lipgloss.Color("3")) ContinueStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("1")) )
View Source
var MatchaStyle = lipgloss.NewStyle().Margin(1, 2). Foreground(lipgloss.Color("default"))
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// model mode
Mode int
// landing page fields
ModeChosen bool
// browse/search mode fields
List list.Model
NoteSources []string
SelectedNote data.Note
// inputs for create mode
Inputs []textinput.Model
Templates []config.NoteTemplate
// contains filtered or unexported fields
}
TODO: add new fields to allow multi-stage application
func InitialModel ¶
func InitialModel() Model
Click to show internal directories.
Click to hide internal directories.