Documentation
¶
Index ¶
Constants ¶
View Source
const ( AppName = "asmgr" AppVersion = "0.6.0" )
Version info
View Source
const ( ListPaneWidth = 45 // Fixed width for session list panel BorderPadding = 3 // Border and padding offset MinPreviewWidth = 40 // Minimum preview panel width TmuxWidthOffset = 2 // Offset to prevent line wrapping in tmux HeightOffset = 8 // Height offset for UI elements MinContentHeight = 10 // Minimum content height MinPreviewLines = 5 // Minimum preview lines to show PreviewHeaderHeight = 6 // Height of preview header area ColorPickerHeader = 12 // Height of color picker header MinColorPickerRows = 5 // Minimum visible color options SessionListMaxItems = 8 // Max visible items in session selector PreviewLineCount = 100 // Number of lines to capture for preview ScrollbackLines = 1000 // Number of lines for scroll history GradientColorCount = 15 // Number of gradient options (for background exclusion) PromptMinWidth = 50 // Minimum prompt input width PromptMaxWidth = 70 // Maximum prompt input width TickInterval = 100 * time.Millisecond // UI refresh interval for selected SlowTickInterval = 500 * time.Millisecond // UI refresh interval for others )
Layout constants
View Source
const ( ColorPurple = "#7D56F4" ColorWhite = "#FAFAFA" ColorGray = "#666666" ColorLightGray = "#888888" ColorDarkGray = "#555555" ColorGreen = "#04B575" ColorOrange = "#FFA500" ColorCyan = "#00CED1" ColorRed = "#FF5F87" ColorYellow = "#FFD700" ColorProjectLabel = "#9CA3AF" ColorProjectName = "#A78BFA" )
Color constants for consistent theming
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColorOption ¶
ColorOption represents a color choice for session styling
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model represents the main TUI application state for Claude Session Manager. It manages multiple Claude Code instances, handles user input, and renders the split-pane interface with session list and preview.
func NewModel ¶
NewModel creates and initializes a new TUI Model. It loads existing sessions from storage, sets up input fields, and prepares the initial state for the Bubble Tea program.
func (Model) Init ¶
Init implements tea.Model and returns the initial command for the program. It sets up the terminal appearance and starts the tick timer.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.