Documentation
¶
Overview ¶
Package sessions provides interactive session picking via fzf or bubbletea.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCancelled = fmt.Errorf("selection cancelled")
ErrCancelled is returned when the user cancels the picker.
Functions ¶
func FormatLine ¶
FormatLine formats a session as a single display line for the picker.
func FormatPreview ¶
FormatPreview returns a second line with the first prompt in dim text, shown below the main FormatLine for extra context.
func ParseSelectedID ¶
ParseSelectedID extracts the session ID from a picker output line. Strips ANSI escape codes first, then takes the first whitespace-delimited field.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.