Documentation ¶
Index ¶
- Variables
- func DeleteFilesIfDevMode()
- func GetAppDataPath() (string, error)
- func InitDb() *sql.DB
- func Log(msgs ...any)
- func MakeErrorMsg(v string) tea.Cmd
- func MakeFocusMsg(v bool) tea.Msg
- func MakeWindowResizeMsg(w int) tea.Msg
- func MigrateFS(db *sql.DB, migrationsFS fs.FS, dir string) error
- type ErrorEvent
- type FocusEvent
- type FocusPane
- type OurWindowResize
- type PrompInputMode
- type ViewMode
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Pink100 = "#F2B3E8" Pink200 = "#8C3A87" Pink300 = "#BD54BF" Purple = "#432D59" Indigo = "#4A2B8C" NormalTabBorderColor = lipgloss.Color("#bbb") ActiveTabBorderColor = lipgloss.Color(Pink300) )
View Source
var ( NormalFocusModes = []FocusPane{SettingsType, SessionsType, PromptType, ChatMessagesType} ZenFocusModes = []FocusPane{PromptType, ChatMessagesType} )
View Source
var MotivationalMessage = lipgloss.NewStyle().
PaddingLeft(1).
Render("There's something scary about a blank canvas...that's why I'm here 😄!")
Functions ¶
func DeleteFilesIfDevMode ¶ added in v0.4.0
func DeleteFilesIfDevMode()
func GetAppDataPath ¶ added in v0.3.0
func MakeErrorMsg ¶
func MakeFocusMsg ¶
func MakeWindowResizeMsg ¶
Types ¶
type ErrorEvent ¶
type ErrorEvent struct {
Message string
}
type FocusEvent ¶
type FocusEvent struct {
IsFocused bool
}
type FocusPane ¶
type FocusPane int
fake enum to keep tab of the currently focused pane
func GetNewFocusMode ¶
type OurWindowResize ¶
type OurWindowResize struct {
Width int
}
type PrompInputMode ¶ added in v0.3.0
type PrompInputMode int
const ( PromptInsertMode PrompInputMode = iota PromptNormalMode )
Click to show internal directories.
Click to hide internal directories.