Documentation
¶
Index ¶
- Constants
- func RefreshTmuxStatusBar(sessionName, instanceName, fgColor, bgColor string, autoYes bool)
- func RefreshTmuxStatusBarFull(sessionName, instanceName, fgColor, bgColor string, inst *session.Instance)
- type ColorOption
- type DiffMode
- type DiffPane
- func (d *DiffPane) GetMode() DiffMode
- func (d *DiffPane) GetModeLabel() string
- func (d *DiffPane) GotoBottom()
- func (d *DiffPane) GotoTop()
- func (d *DiffPane) PageDown()
- func (d *DiffPane) PageUp()
- func (d *DiffPane) ScrollDown()
- func (d *DiffPane) ScrollUp()
- func (d *DiffPane) SetDiff(inst *session.Instance)
- func (d *DiffPane) SetSize(width, height int)
- func (d *DiffPane) ToggleMode()
- func (d *DiffPane) View() string
- type Model
Constants ¶
const ( AppName = "asmgr" AppVersion = "0.7.8" )
Version info
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 FavoritesGroupID = "__favorites__" // Virtual group ID for favorites )
Layout constants
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 ¶
func RefreshTmuxStatusBar ¶ added in v0.6.5
RefreshTmuxStatusBar is the exported version for external calls
func RefreshTmuxStatusBarFull ¶ added in v0.6.5
func RefreshTmuxStatusBarFull(sessionName, instanceName, fgColor, bgColor string, inst *session.Instance)
RefreshTmuxStatusBarFull is the full version with per-window YOLO support
Types ¶
type ColorOption ¶
ColorOption represents a color choice for session styling
type DiffPane ¶ added in v0.6.5
type DiffPane struct {
// contains filtered or unexported fields
}
DiffPane manages the diff display with scrolling support
func (*DiffPane) GetModeLabel ¶ added in v0.6.5
GetModeLabel returns a human-readable label for current mode
func (*DiffPane) GotoBottom ¶ added in v0.6.5
func (d *DiffPane) GotoBottom()
GotoBottom scrolls to the end of the content
func (*DiffPane) GotoTop ¶ added in v0.6.5
func (d *DiffPane) GotoTop()
GotoTop scrolls to the beginning of the content
func (*DiffPane) PageDown ¶ added in v0.6.5
func (d *DiffPane) PageDown()
PageDown scrolls the viewport down by a page
func (*DiffPane) PageUp ¶ added in v0.6.5
func (d *DiffPane) PageUp()
PageUp scrolls the viewport up by a page
func (*DiffPane) ScrollDown ¶ added in v0.6.5
func (d *DiffPane) ScrollDown()
ScrollDown scrolls the viewport down
func (*DiffPane) ScrollUp ¶ added in v0.6.5
func (d *DiffPane) ScrollUp()
ScrollUp scrolls the viewport up
func (*DiffPane) ToggleMode ¶ added in v0.6.5
func (d *DiffPane) ToggleMode()
ToggleMode switches between session diff and full diff
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model represents the main TUI application state for Agent 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
¶
- colors.go
- diff.go
- handlers.go
- handlers_dialogs.go
- handlers_group.go
- handlers_list.go
- handlers_project.go
- handlers_session.go
- helpers.go
- model.go
- styles.go
- views.go
- views_color_picker.go
- views_dialogs.go
- views_fork.go
- views_global_search.go
- views_help.go
- views_preview.go
- views_project.go
- views_session_list.go
- views_status.go