session

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Copyright © 2025 Eden Phillips

Copyright © 2025 Eden Phillips

Index

Constants

This section is empty.

Variables

View Source
var (
	TitleStyle        = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("7")).Padding(1, 2)
	SessionTimerStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("7")).Width(30).Align(lipgloss.Center).Padding(1)
	SuccessStyle      = lipgloss.NewStyle().Foreground(lipgloss.Color("10")).Bold(true)
	ErrorStyle        = lipgloss.NewStyle().Foreground(lipgloss.Color("9")).Bold(true)
	InputStyle        = lipgloss.NewStyle().BorderForeground(lipgloss.Color("8")).BorderStyle(lipgloss.RoundedBorder()).Padding(0, 1)
	FocusedStyle      = lipgloss.NewStyle().BorderForeground(lipgloss.Color("7")).BorderStyle(lipgloss.RoundedBorder()).Padding(0, 1)
	StepStyle         = lipgloss.NewStyle().Foreground(lipgloss.Color("8"))
)
View Source
var DefaultKeyMap = KeyMap{
	Quit: key.NewBinding(
		key.WithKeys("ctrl+c", "q"),
		key.WithHelp("ctrl+c/q", "quit"),
	),

	QuitInput: key.NewBinding(
		key.WithKeys("ctrl+c"),
		key.WithHelp("ctrl+c", "quit"),
	),

	Continue: key.NewBinding(
		key.WithKeys("enter"),
		key.WithHelp("enter", "continue"),
	),
	Skip: key.NewBinding(
		key.WithKeys("tab"),
		key.WithHelp("tab", "skip to notes"),
	),
	Save: key.NewBinding(
		key.WithKeys("ctrl+s", "ctrl+enter"),
		key.WithHelp("ctrl+s/ctrl+enter", "save"),
	),
	Back: key.NewBinding(
		key.WithKeys("shift+tab"),
		key.WithHelp("shift+tab", "go back"),
	),
	Exit: key.NewBinding(
		key.WithKeys("enter", "q"),
		key.WithHelp("enter/q", "exit"),
	),
	// contains filtered or unexported fields
}

Functions

func InitialModel

func InitialModel(dbPath string) model

Types

type KeyMap

type KeyMap struct {
	Quit      key.Binding
	QuitInput key.Binding

	Continue key.Binding
	Skip     key.Binding
	Save     key.Binding
	Back     key.Binding
	Exit     key.Binding
	// contains filtered or unexported fields
}

func (KeyMap) DoneHelp

func (k KeyMap) DoneHelp() []key.Binding

func (KeyMap) DoneKeyMap

func (k KeyMap) DoneKeyMap() help.KeyMap

func (KeyMap) FocusQualityHelp

func (k KeyMap) FocusQualityHelp() []key.Binding

func (KeyMap) FocusQualityKeyMap

func (k KeyMap) FocusQualityKeyMap() help.KeyMap

func (KeyMap) FullHelp

func (k KeyMap) FullHelp() [][]key.Binding

func (KeyMap) InterruptionsHelp

func (k KeyMap) InterruptionsHelp() []key.Binding

func (KeyMap) InterruptionsKeyMap

func (k KeyMap) InterruptionsKeyMap() help.KeyMap

func (KeyMap) MilestoneHelp

func (k KeyMap) MilestoneHelp() []key.Binding

func (KeyMap) MilestoneKeyMap

func (k KeyMap) MilestoneKeyMap() help.KeyMap

func (KeyMap) ReflectionHelp

func (k KeyMap) ReflectionHelp() []key.Binding

func (KeyMap) ReflectionKeyMap

func (k KeyMap) ReflectionKeyMap() help.KeyMap

func (KeyMap) SavingKeyMap

func (k KeyMap) SavingKeyMap() help.KeyMap

func (KeyMap) ShortHelp

func (k KeyMap) ShortHelp() []key.Binding

Jump to

Keyboard shortcuts

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