Documentation
¶
Overview ¶
Package transcript is the full-screen pager over the conversation (cockpit-research.md rule 6.2). It is pushed onto the app router's stack by ctrl+o and is the replacement for terminal find: the alternate screen hides the session from Cmd-F and tmux copy-mode, so the app must search it itself.
Keys follow less, because less is the muscle memory every terminal user already has. The conversation is a VALUE snapshot of the conversation screen's transcript model: blocks re-render at any width, so the pager re-flows on resize without anyone rebuilding it.
Index ¶
- type Screen
- func (s *Screen) ClearSelection()
- func (s Screen) HasSelection() bool
- func (s Screen) Init() tea.Cmd
- func (s Screen) SelectedText() string
- func (s Screen) Selection() sel.Selection
- func (s Screen) SelectionRect() sel.Rect
- func (s *Screen) SelectionRegions() []sel.RegionEntry
- func (s *Screen) SetSelection(x sel.Selection)
- func (s Screen) Update(msg tea.Msg) (app.Screen, tea.Cmd)
- func (s Screen) View() string
- func (s Screen) ViewFlags() app.ViewFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Screen ¶
Screen is the transcript-mode pager.
func (*Screen) ClearSelection ¶ added in v0.1.2
func (s *Screen) ClearSelection()
ClearSelection drops any selection and its highlight.
func (Screen) HasSelection ¶ added in v0.1.2
HasSelection reports whether a selection is active.
func (Screen) SelectedText ¶ added in v0.1.2
SelectedText returns the plain stream text between anchor and focus over the visible rows. Pager rows are already plain text; styles are stripped defensively so a future styled row cannot leak sequences into the clipboard.
func (Screen) Selection ¶ added in v0.1.2
Selection reports the current selection, including the armed anchor.
func (Screen) SelectionRect ¶ added in v0.1.2
SelectionRect returns the pager body's absolute screen rect.
func (*Screen) SelectionRegions ¶ added in v0.1.2
func (s *Screen) SelectionRegions() []sel.RegionEntry
SelectionRegions implements sel.RegionsScreen for the router. The handle is a pointer into the live stack entry: deliverTop replaces the slot after each Update, and only that slot's state renders.
func (*Screen) SetSelection ¶ added in v0.1.2
SetSelection records the live drag selection in viewport-local cells, copying first so the previously published copies keep painting the state they were rendered with.
func (Screen) Update ¶
Update handles keys, the wheel, resizes, and the completion messages of the two handover commands.