Documentation
¶
Overview ¶
Package overview owns the app-level cross-project Overview model.
Index ¶
- Constants
- Variables
- func IsAsyncMessage(msg tea.Msg) bool
- func IsHostHealthRow(id string) bool
- func IsHostMessage(msg tea.Msg) bool
- func IsSharedDiffMessage(msg tea.Msg) bool
- func IsSharedPickerMessage(msg tea.Msg) bool
- func RowLayoutBadge(wtState state.WorkspaceState, surface string) string
- func WorkspaceSurface(workspace workspaceinventory.Workspace) string
- type Content
- type HostCatalogEntry
- type HostCatalogProject
- type HostCondition
- type Model
- func (m *Model) AtFocusCycleEnd(reverse bool) bool
- func (m *Model) AttentionOrigin() (plugin.AttentionOrigin, bool)
- func (m *Model) BoardWheelAtBoundary(msg tea.MouseWheelMsg) bool
- func (m *Model) CanOpenInGit() bool
- func (m *Model) Commands() []plugin.Command
- func (m *Model) ConsumeValidation(generation int, requestID uint64) bool
- func (m *Model) CreateOpen() bool
- func (m *Model) CreatePaste(value string) bool
- func (m *Model) DeleteOpen() bool
- func (m *Model) DeletingWorktree() bool
- func (m *Model) Ensure(projects []Project) tea.Cmd
- func (m *Model) FocusCycleStart(reverse bool) tea.Cmd
- func (m *Model) HostCatalog() []HostCatalogEntry
- func (m *Model) HostConditions() []HostCondition
- func (m *Model) HostContentSource(hostID string) contentpanes.Source
- func (m *Model) HostControlSpawner(hostID string) tty.ControlSpawner
- func (m *Model) HostHealthDetail(rowID string) string
- func (m *Model) HostShows(hostID string) bool
- func (m *Model) HostVerbs(hostID string) hostproto.VerbCapabilities
- func (m *Model) InteractiveExitKey() string
- func (m *Model) IsCurrentNavigation(generation int, requestID uint64) bool
- func (m *Model) OpenCreate(projectKey string) tea.Cmd
- func (m *Model) OpenCreateShell(projectKey string) tea.Cmd
- func (m *Model) OpenCreateWorktree(projectKey string) tea.Cmd
- func (m *Model) OpenDeleteSelectedShell() tea.Cmd
- func (m *Model) OpenDeleteSelectedWorktree() tea.Cmd
- func (m *Model) OpenPaneSwitcher() tea.Cmd
- func (m *Model) OpenPreviewResource(ref resourceview.Ref) tea.Cmd
- func (m *Model) OpenRenameShell() tea.Cmd
- func (m *Model) OpenRenameTerminalLeaf(leafID int) tea.Cmd
- func (m *Model) OpenRenameWorktree() tea.Cmd
- func (m *Model) OpenSelectedInGit() tea.Cmd
- func (m *Model) PrepareTerminalLinks()
- func (m *Model) PreviewCanType() bool
- func (m *Model) PreviewDocEditMsg(msg tea.Msg) tea.Cmd
- func (m *Model) PreviewFocused() bool
- func (m *Model) PreviewInteractive() bool
- func (m *Model) PreviewOwnsKeyboard() bool
- func (m *Model) RelayedRowOnScreen(req uirequest.Request) bool
- func (m *Model) RenameShellOpen() bool
- func (m *Model) RenameShellPaste(text string) bool
- func (m *Model) RenameWorktreeOpen() bool
- func (m *Model) RequestNavigation(workspace workspaceinventory.Workspace) tea.Cmd
- func (m *Model) RequestNavigationAction(workspace workspaceinventory.Workspace, action string) tea.Cmd
- func (m *Model) RequestReveal(workspace workspaceinventory.Workspace) tea.Cmd
- func (m *Model) ResizeDragActive() bool
- func (m *Model) ResolveRemoteTerminalLink(hostID, root string, candidate contentlink.Pending) (contentlink.Ref, bool)
- func (m *Model) RevealWorkspace(workspace workspaceinventory.Workspace) tea.Cmd
- func (m *Model) RunDeleteCommand(id string) tea.Cmd
- func (m *Model) RunHostSidecar(ctx context.Context, hostID string, args []string, out any) error
- func (m *Model) SelectedShell() bool
- func (m *Model) SelectedWorkspace() (workspaceinventory.Workspace, bool)
- func (m *Model) SetApplicationFocused(focused bool) tea.Cmd
- func (m *Model) SetConfig(cfg *config.Config)
- func (m *Model) SetProjects(projects []Project) tea.Cmd
- func (m *Model) SetResourceMatchers(matchers []terminallink.ResourceMatcher)
- func (m *Model) SetResourceResolver(resolve resourceview.Resolver) tea.Cmd
- func (m *Model) SetTerminalConfig(config tty.Config)
- func (m *Model) SetTerminalLinkCoordinator(coordinator termpreview.LinkCoordinator)
- func (m *Model) SetWorkspacesVisible(visible bool) tea.Cmd
- func (m *Model) Start(projects []Project) tea.Cmd
- func (m *Model) StartSelectedMerge() tea.Cmd
- func (m *Model) Stop()
- func (m *Model) StopHosts()
- func (m *Model) SyncHosts() tea.Cmd
- func (m *Model) TerminalConfig() tty.Config
- func (m *Model) Update(msg tea.Msg) tea.Cmd
- func (m *Model) Validate(msg NavigateMsg) tea.Cmd
- func (m *Model) View(width, height int) string
- func (m *Model) ViewFlyoutOpen() bool
- func (m *Model) WorkspaceFocusContext() string
- func (m *Model) WorkspaceSidebarVisible() bool
- func (m *Model) WorkspacesCursor() *tea.Cursor
- func (m *Model) WorkspacesFilterActive() bool
- func (m *Model) WorkspacesFilterFocused() bool
- func (m *Model) WorkspacesKey(msg tea.KeyPressMsg) (bool, tea.Cmd)
- func (m *Model) WorkspacesMouse(msg tea.Msg) tea.Cmd
- func (m *Model) WorkspacesPaneLayoutModalOpen() bool
- func (m *Model) WorkspacesPaste(text string) bool
- func (m *Model) WorkspacesPreviewActive() bool
- func (m *Model) WorkspacesPreviewCmd() tea.Cmd
- func (m *Model) WorkspacesPreviewVisible() bool
- func (m *Model) WorkspacesResize(width, height int) tea.Cmd
- func (m *Model) WorkspacesSummary() string
- func (m *Model) WorkspacesTerminalKeySequence(msg tea.Msg) (bool, tea.Cmd)
- func (m *Model) WorkspacesTerminalMsg(msg tea.Msg) tea.Cmd
- func (m *Model) WorkspacesTerminalPaste(content string) (bool, tea.Cmd)
- func (m *Model) WorkspacesView(width, height int) string
- func (m *Model) WorkspacesWheelAtBoundary(msg tea.MouseWheelMsg) bool
- type NavigateMsg
- type OpenInGitMsg
- type OpenIssueInTDMsg
- type Project
- type Render
- type RevealMsg
- type Size
- type ValidationMsg
Constants ¶
const DormantAfter = time.Hour
DormantAfter is when an idle session stops competing for attention. The idle lane holds both "finished a minute ago" and "untouched since Tuesday"; dimming past this threshold separates them without a sixth lane.
const LayoutMoveModalOpenReason = "the reposition modal is open on that surface; finish or cancel it first"
LayoutMoveModalOpenReason declines an agent move while a human is mid-draft in the reposition modal, for the reason the project surface states.
Variables ¶
var ActivityStorePath = func() string { return filepath.Join(config.StateDir(), activitystore.FileName) }
ActivityStorePath is overridable so tests never touch the user's state dir.
Functions ¶
func IsAsyncMessage ¶
func IsHostHealthRow ¶ added in v1.11.0
IsHostHealthRow reports whether a row is a host's health rather than a workspace.
func IsHostMessage ¶ added in v1.11.0
IsHostMessage reports whether a message belongs to the remote-host stream.
The app routes these to the browser unconditionally, not only while the global tab is on screen. Two reasons, and the second is the load-bearing one: a host's rows must be current the moment a user switches to Sessions rather than a poll behind, and — more importantly — each delivery is what schedules the next read of the update channel. A message dropped because the wrong tab was focused does not merely delay a row; it ends the stream for the rest of the session.
func IsSharedDiffMessage ¶ added in v1.0.0
IsSharedDiffMessage reports whether msg must remain available to project workspace plugins after the global browser has inspected it. Deck results are shared by construction; raw workspacediff messages predate Deck and are shared for the same reason. Routing either family here alone leaves the project pane that issued the load waiting forever.
func IsSharedPickerMessage ¶ added in v1.7.0
IsSharedPickerMessage reports pane-switcher suggestion results. Both hosts consume them — whichever surface opened its modal fired the loaders — so they must reach the plugins by broadcast as well as this browser, and the app's async hand-off must not stop there. See internal/app/update.go.
func RowLayoutBadge ¶ added in v1.3.0
func RowLayoutBadge(wtState state.WorkspaceState, surface string) string
RowLayoutBadge is the layout glyph one workspace's row wears, given the project state that workspace was saved in. It is a state-free rule on purpose: it is what the project sidebar's own badge is measured against, and a rule that could only be reached through a running Model could not be.
func WorkspaceSurface ¶ added in v1.3.0
func WorkspaceSurface(workspace workspaceinventory.Workspace) string
WorkspaceSurface is the key one workspace's pane tree is persisted under. Exported for the same reason RowLayoutBadge is: the two surfaces have to agree on it, and a test that cannot ask both of them proves nothing.
Types ¶
type Content ¶ added in v1.0.0
Content, Size and Render are the shared frame's contract, aliased rather than redeclared so a leaf on this surface and a leaf in the project workspace plugin are the same type.
type HostCatalogEntry ¶ added in v1.12.0
type HostCatalogEntry struct {
ID string
Health hosts.Health
Incarnation uint64
Projects []HostCatalogProject
}
HostCatalogEntry is one registered machine's in-memory inventory as the project and worktree switchers will read it: live health, serve incarnation, and the project rows already folded in. It is a copy; callers must not mutate registry state through the result.
type HostCatalogProject ¶ added in v1.12.0
type HostCatalogProject struct {
Key string
Name string
Root string
Workspaces []workspaceinventory.Workspace
}
HostCatalogProject is one host-side project. Key is the unscoped inventory key (canonical(root) on that machine). Persist and compare later via hosts.ScopedKey(HostID, Key) — hosts.ProjectResults already stores the scoped form, and leaving that in Key would double-scope.
type HostCondition ¶ added in v1.11.0
HostCondition is one registered machine's health, paired with the name the browser knows it by. It is a projection for callers outside this package, so nothing here exposes a client or a way to start one.
type Model ¶
type Model struct {
// RelayedLanding, when set, reports whether Sessions should handle a
// relayed open/layout (apply or decline). False means the bound project
// workspace owns it: handleUIRequest returns without acking. Nil means
// Sessions always considers itself the screen (existing package tests).
RelayedLanding func(uirequest.Request) bool
// contains filtered or unexported fields
}
func New ¶
func New(collector workspaceinventory.Collector) *Model
func (*Model) AtFocusCycleEnd ¶ added in v1.2.0
AtFocusCycleEnd and FocusCycleStart implement plugin.FocusCycler for the global Workspaces browser, the parity twin of the project surface: the shell inserts the notification centre at the wrap point of this ring too, so Tab behaves the same on both.
func (*Model) AttentionOrigin ¶ added in v1.11.0
func (m *Model) AttentionOrigin() (plugin.AttentionOrigin, bool)
AttentionOrigin projects the selected global Sessions row through the same app-level identity shape as the project workspace surface.
func (*Model) BoardWheelAtBoundary ¶ added in v1.0.0
func (m *Model) BoardWheelAtBoundary(msg tea.MouseWheelMsg) bool
BoardWheelAtBoundary mirrors the activity board's wheel routing in Update without moving the selection or rendering. It answers true only when the event cannot change the board selection: the pointer is over the column that already owns the selection and that column's selected row cannot move (an empty column is bounded in both directions).
A wheel over a different column is movable, because kanban.MoveInColumn re-targets the selection to that column before moving the row.
func (*Model) CanOpenInGit ¶ added in v0.98.0
CanOpenInGit reports that the list cursor has a checkout the Git plugin can open.
func (*Model) Commands ¶
Commands is the footer and palette metadata for the active WorkspaceFocusContext. Bindings live in the keymap; names and priorities live here so a focused issue or document cannot advertise the list's keys.
func (*Model) ConsumeValidation ¶
ConsumeValidation accepts a result at most once. A later duplicate or a result superseded by another activation cannot navigate.
func (*Model) CreateOpen ¶ added in v1.0.0
func (*Model) CreatePaste ¶ added in v1.0.0
func (*Model) DeleteOpen ¶ added in v1.0.0
func (*Model) DeletingWorktree ¶ added in v1.0.0
DeletingWorktree reports that the open confirmation is the shared "Delete Worktree?" one rather than this surface's shell confirmation.
func (*Model) Ensure ¶ added in v0.98.0
Ensure starts collection only when the shared catalog has nothing live behind it. The Agents board and the global Workspaces list are two projections of one cache: whichever becomes visible first starts the cycle, and the other reuses its results, its trackers, and its poll. A second collector here would double every project's tmux and Git fan-out for a view that already has the data. Ensure starts collection when the shared catalog has nothing live behind it, and otherwise refreshes only when what it holds could actually be stale.
Opening the tab is the gesture a user makes when they suspect the board is out of date, and the poll it would otherwise resume re-reads tmux evidence and no durable state at all — so a cold start, a changed project set, or a catalog whose last full inventory has aged out all re-read from disk.
What must not trigger one is moving between the two global tabs. They are two projections of one catalog and deliberately do not stop collection when switching, so refreshing on every toggle would reintroduce exactly the duplicated fan-out that sharing the collector exists to avoid.
func (*Model) FocusCycleStart ¶ added in v1.2.0
func (*Model) HostCatalog ¶ added in v1.12.0
func (m *Model) HostCatalog() []HostCatalogEntry
HostCatalog returns every registered host's current catalog, in the same order HostConditions uses. It is empty when there is no registry — feature off, Overview off, or nothing registered — because in that case there is nothing to read without starting a second Sync loop.
func (*Model) HostConditions ¶ added in v1.11.0
func (m *Model) HostConditions() []HostCondition
HostConditions returns every registered host's current health, in the same order the browser groups remote rows in. It is empty when the feature is off or nothing is registered, because in that case no registry exists at all.
func (*Model) HostContentSource ¶ added in v1.12.0
func (m *Model) HostContentSource(hostID string) contentpanes.Source
HostContentSource is the Document adapter for hostID. Tests inject a fake through contentSource; production builds RemoteSource from the Sessions runner and the host's advertised verbs.
func (*Model) HostControlSpawner ¶ added in v1.12.0
func (m *Model) HostControlSpawner(hostID string) tty.ControlSpawner
HostControlSpawner is the control-mode proxy Sessions already uses for a remote row. The project workspace reuses it rather than forking a second ssh/tmux channel.
func (*Model) HostHealthDetail ¶ added in v1.11.0
HostHealthDetail is what the preview shows for a selected host health row: the state, what went wrong, and what to do. Empty for anything that is not a health row, which is how the preview knows to fall through.
func (*Model) HostShows ¶ added in v1.12.0
HostShows is the bound-plugin injection of hostShows: the host is connected enough that a verb sent to it can be expected to answer.
func (*Model) HostVerbs ¶ added in v1.12.0
func (m *Model) HostVerbs(hostID string) hostproto.VerbCapabilities
HostVerbs is the bound-workspace injection of hostVerbs.
func (*Model) InteractiveExitKey ¶ added in v0.98.0
InteractiveExitKey is the chord that ends interactive mode here.
func (*Model) IsCurrentNavigation ¶
func (*Model) OpenCreate ¶ added in v1.0.0
OpenCreate opens the shared chooser used by header and section + actions. A section supplies the project answer but leaves the capability choice live.
func (*Model) OpenCreateShell ¶ added in v1.0.0
func (*Model) OpenCreateWorktree ¶ added in v1.0.0
func (*Model) OpenDeleteSelectedShell ¶ added in v1.0.0
func (*Model) OpenDeleteSelectedWorktree ¶ added in v1.0.0
OpenDeleteSelectedWorktree raises the shared "Delete Worktree?" confirmation for the selected worktree. The modal, its branch cleanup options, and its input routing are internal/worktreedelete — the project surface's modal, not a copy of it.
func (*Model) OpenPaneSwitcher ¶ added in v1.7.0
OpenPaneSwitcher opens the create modal as the pane switcher: kind list focused, on the row it was last left on. It is the global browser's half of the entry the project workspace binds — a pane opens beside what you are reading without first leaving it — and both surfaces answer the same key in the same contexts, which internal/keymap's parity test holds them to.
func (*Model) OpenPreviewResource ¶ added in v1.0.3
func (m *Model) OpenPreviewResource(ref resourceview.Ref) tea.Cmd
OpenPreviewResource opens or focuses a resource tab without the terminal ritual. It is the `sidecar open --provider` path: nothing was clicked in terminal output, so there is no selection to clear.
func (*Model) OpenRenameShell ¶ added in v0.98.0
OpenRenameShell opens the Rename Shell modal, prefilled with the selected shell's display name.
func (*Model) OpenRenameTerminalLeaf ¶ added in v1.8.0
OpenRenameTerminalLeaf opens the same rename surface for a peer terminal. The leaf ID is the identity: the selected catalog row is only its owner and must not accidentally rename a persisted shell record.
func (*Model) OpenRenameWorktree ¶ added in v1.0.0
OpenRenameWorktree opens the display-name modal for the selected worktree. The git branch and directory are not renamed.
func (*Model) OpenSelectedInGit ¶ added in v0.98.0
OpenSelectedInGit jumps to the project's Git plugin at the checkout the mini-diff showed: worktree Path, or ProjectRoot for a shell.
func (*Model) PrepareTerminalLinks ¶ added in v1.6.0
func (m *Model) PrepareTerminalLinks()
PrepareTerminalLinks builds the immutable visible-row answer on the update path. View and pointer hit testing only read the terminal leaf's link state.
func (*Model) PreviewCanType ¶ added in v0.98.0
PreviewCanType reports that the selection has a live pane this surface could hand the keyboard to. The footer asks so it never offers a key the preview itself is refusing.
func (*Model) PreviewDocEditMsg ¶ added in v1.2.0
PreviewDocEditMsg offers the pane editor one of the terminal component's own messages, alongside the browser's terminal.
func (*Model) PreviewFocused ¶ added in v0.98.0
PreviewFocused reports that the preview owns the keyboard.
func (*Model) PreviewInteractive ¶ added in v0.98.0
PreviewInteractive reports that the focused preview is forwarding keys to a live pane. The app asks so the keymap context, the footer hints, the mouse mode and the native cursor all follow the same fact.
func (*Model) PreviewOwnsKeyboard ¶ added in v1.2.0
PreviewOwnsKeyboard reports that the preview — a live terminal or a live editor — is taking every key. The app asks so the mouse mode, the cursor and the key ladder all follow one fact.
func (*Model) RelayedRowOnScreen ¶ added in v1.12.0
RelayedRowOnScreen reports that the Sessions preview is showing the origin's matching row — the existing landing gate, asked as a yes/no so the app-level decider does not copy it.
func (*Model) RenameShellOpen ¶ added in v0.98.0
RenameShellOpen reports that the rename overlay owns the keyboard.
func (*Model) RenameShellPaste ¶ added in v0.98.0
RenameShellPaste inserts pasted text into the rename field.
func (*Model) RenameWorktreeOpen ¶ added in v1.0.0
RenameWorktreeOpen reports that the worktree display-name modal is open.
func (*Model) RequestNavigation ¶
func (m *Model) RequestNavigation(workspace workspaceinventory.Workspace) tea.Cmd
RequestNavigation binds a card activation to the current Overview lifecycle and supersedes any prior in-flight destination validation.
func (*Model) RequestNavigationAction ¶ added in v1.0.0
func (*Model) RequestReveal ¶ added in v1.0.0
func (m *Model) RequestReveal(workspace workspaceinventory.Workspace) tea.Cmd
RequestReveal asks the host to open the selected card in the global Workspaces browser. Bumping the request ID supersedes any activation still being validated, exactly as a navigation request does.
func (*Model) ResizeDragActive ¶ added in v1.2.0
ResizeDragActive reports a live divider drag on this surface — the preview pane tree's rails and the diff view's.
func (*Model) ResolveRemoteTerminalLink ¶ added in v1.12.0
func (m *Model) ResolveRemoteTerminalLink(hostID, root string, candidate contentlink.Pending) (contentlink.Ref, bool)
ResolveRemoteTerminalLink is KindFile/KindDiff pending resolution for a showing remote Sessions row. It must not touch this machine's twin path.
func (*Model) RevealWorkspace ¶ added in v1.0.0
func (m *Model) RevealWorkspace(workspace workspaceinventory.Workspace) tea.Cmd
RevealWorkspace selects a workspace in the global Workspaces list. It is the host's half of a RevealMsg and runs before the tab becomes visible, so the preview binds to the revealed row rather than the previously selected one.
func (*Model) RunDeleteCommand ¶ added in v1.0.0
func (*Model) RunHostSidecar ¶ added in v1.12.0
RunHostSidecar is the hosts.RunSidecar seam the bound workspace plugin reuses for content reads and relayed acks.
func (*Model) SelectedShell ¶ added in v0.98.0
SelectedShell reports that the list cursor is on a shell row.
func (*Model) SelectedWorkspace ¶ added in v0.98.0
func (m *Model) SelectedWorkspace() (workspaceinventory.Workspace, bool)
SelectedWorkspace resolves the list cursor back to its catalog record.
func (*Model) SetApplicationFocused ¶ added in v1.11.0
SetApplicationFocused gives a remote interactive terminal the same process focus lifecycle as local geometry arbitration: blur releases its claim; focus reclaims only when this pane still owns input.
func (*Model) SetConfig ¶ added in v1.0.0
SetConfig hands the global host the same app-owned configuration project plugins receive, without instantiating or temporarily switching a plugin.
func (*Model) SetProjects ¶ added in v1.4.0
SetProjects applies a changed configured project set immediately, canceling any cycle that is still running so the change cannot be silently dropped. Ensure defers to an in-flight cycle, which is right for visibility gestures but wrong for membership changes: a project added or removed while the browser is live must win now, not after the next tab transition.
func (*Model) SetResourceMatchers ¶ added in v1.0.3
func (m *Model) SetResourceMatchers(matchers []terminallink.ResourceMatcher)
SetResourceMatchers replaces the compiled external matchers the scanner may run, in precedence order. Empty — the default — means no provider is ready, which must read as ordinary unlinked text.
func (*Model) SetResourceResolver ¶ added in v1.0.3
func (m *Model) SetResourceResolver(resolve resourceview.Resolver) tea.Cmd
SetResourceResolver supplies the provider-backed resolver, and returns the load it starts for the pane on screen. A tab opened before the app wired one is armed and waiting for readiness; this is where readiness arrives, so it is where the wait ends. Cached rows are rebound but not asked — they are not on screen, and showing one loads it.
func (*Model) SetTerminalConfig ¶ added in v0.98.0
SetTerminalConfig adopts the user's terminal settings, so the browser's live pane and the project plugin's answer the same chords for the same acts. It is a setter rather than a constructor argument because this package must not import internal/config: the app resolves the values once and hands the same value to both surfaces.
func (*Model) SetTerminalLinkCoordinator ¶ added in v1.6.0
func (m *Model) SetTerminalLinkCoordinator(coordinator termpreview.LinkCoordinator)
func (*Model) SetWorkspacesVisible ¶ added in v0.98.0
SetWorkspacesVisible tells the preview whether anyone is looking at it. Becoming visible opens one model for the selected Output pane; becoming hidden closes that model and its control subscription.
func (*Model) StartSelectedMerge ¶ added in v1.0.0
func (*Model) StopHosts ¶ added in v1.11.0
func (m *Model) StopHosts()
StopHosts disconnects every remote host. It is separate from Stop because Stop runs whenever the tab is left, and a host connection must outlive that: reconnecting every machine each time a user switches tabs would be both slow and, on a flaky link, a source of rows that blink.
func (*Model) SyncHosts ¶ added in v1.11.0
SyncHosts brings remote host connections in line with the current config. Returns the command that begins consuming their updates, or nil when the feature is off or nothing is registered.
func (*Model) TerminalConfig ¶ added in v0.98.0
TerminalConfig is the resolved configuration this surface answers. The app asks so the keymap binding, the footer, and the palette describe the keys the surface actually answers.
func (*Model) Update ¶
Update handles one message and, on the way out, keeps the working/blocked marker animation armed. Arming here rather than at a single entry point is what makes the pulse unconditional: whatever brought a live row on screen — a refresh, a filter keystroke, scrolling, opening the tab — re-checks the clock instead of leaving the row frozen until the next refresh.
func (*Model) ViewFlyoutOpen ¶ added in v0.98.0
func (*Model) WorkspaceFocusContext ¶ added in v0.98.0
WorkspaceFocusContext is the keymap, footer, and help context for this tab. List, filter, rename, typing, and a focused document or issue leaf each have their own. There is no watched-preview context: hiding the sidebar is layout only, and the keyboard stays on the list until the user types or focuses a content leaf.
func (*Model) WorkspaceSidebarVisible ¶ added in v0.98.0
func (*Model) WorkspacesCursor ¶ added in v0.98.0
WorkspacesCursor is the live pane's own cursor, in tab-local coordinates. It is placed against the window this surface drew, not against a second one the terminal component rendered for itself, so the cell the cursor sits in is the cell a click there is forwarded to.
It is nil for every other state: a watched pane has no cursor to place, and drawing one would invite typing into something that forwards nothing.
func (*Model) WorkspacesFilterActive ¶ added in v0.98.0
WorkspacesFilterActive reports that a query is still narrowing the list, even after enter handed navigation back to it. The app asks so that esc clears the query the user can see before it means "leave the global space".
func (*Model) WorkspacesFilterFocused ¶ added in v0.98.0
WorkspacesFilterFocused reports that the inline filter owns the keyboard, so the app can report a text-input context and keep its own printable shortcuts off the query.
func (*Model) WorkspacesKey ¶ added in v0.98.0
WorkspacesKey handles one key for the global Workspaces tab and reports whether it consumed it. While the filter has focus it consumes everything except live navigation, which is what keeps app shortcuts from stealing printable characters mid-query.
func (*Model) WorkspacesMouse ¶ added in v0.98.0
WorkspacesMouse routes a mouse event to the list using the regions the last render registered.
func (*Model) WorkspacesPaneLayoutModalOpen ¶ added in v1.11.0
WorkspacesPaneLayoutModalOpen reports that the pane-layout overlay owns all input, including bracketed paste messages routed separately from keys.
func (*Model) WorkspacesPaste ¶ added in v0.98.0
WorkspacesPaste appends pasted text to a focused filter. An open pane-layout modal absorbs the paste before the previously focused surface can see it.
func (*Model) WorkspacesPreviewActive ¶ added in v0.98.0
WorkspacesPreviewActive reports whether the visible-selection terminal owns a live target. It is diagnostic state for lifecycle tests, not another surface.
func (*Model) WorkspacesPreviewCmd ¶ added in v0.98.0
WorkspacesPreviewCmd is the command a paste or another caller-side selection change owes the preview: the cursor may have moved to a different item, and the preview follows the cursor.
func (*Model) WorkspacesPreviewVisible ¶ added in v0.98.0
WorkspacesPreviewVisible reports whether the preview believes anyone is looking at it. It exists so the app can prove that scope and tab changes actually reach terminal reconciliation.
func (*Model) WorkspacesResize ¶ added in v0.98.0
WorkspacesResize adopts a new tab size ahead of the frame that will use it, so a live pane is resized when the window is, rather than the next time a message happens to reach the terminal.
func (*Model) WorkspacesSummary ¶ added in v0.98.0
WorkspacesSummary is the header-right text for the tab.
func (*Model) WorkspacesTerminalKeySequence ¶ added in v0.98.0
WorkspacesTerminalKeySequence routes an unparsed CSI sequence — a modified key like shift+enter, which never becomes a KeyPressMsg — into a live pane, and reports whether it took it. Without it those keys would be dropped on their way past the global scope, and the pane would see a plain enter.
func (*Model) WorkspacesTerminalMsg ¶ added in v0.98.0
WorkspacesTerminalMsg offers every active terminal in the current row one of the terminal component's own messages. Every message is scope-tagged, so the owning activation acts and its peers ignore it. Routing only to the focused leaf would make an unfocused peer miss output, control and session events.
func (*Model) WorkspacesTerminalPaste ¶ added in v0.98.0
WorkspacesTerminalPaste routes bracketed-paste content into a live pane and reports whether it took it. A paste with no terminal up belongs to the filter or to nobody.
func (*Model) WorkspacesView ¶ added in v0.98.0
WorkspacesView renders the global Workspaces tab: the list on the left and exactly one terminal box on the right.
At widths that cannot sustain two useful panes the list is full width and the preview replaces it when focused, rather than shrinking both into unreadable columns.
func (*Model) WorkspacesWheelAtBoundary ¶ added in v1.0.0
func (m *Model) WorkspacesWheelAtBoundary(msg tea.MouseWheelMsg) bool
WorkspacesWheelAtBoundary mirrors WorkspacesMouse's wheel routing without mutating visible state. It is called before Bubble Tea Update/View so an inertial tail at a real boundary can be discarded cheaply.
type NavigateMsg ¶
type NavigateMsg struct {
}
type OpenInGitMsg ¶ added in v0.98.0
type OpenInGitMsg struct {
Path string
}
OpenInGitMsg asks the app to leave global, switch to this checkout, and focus the Git plugin. Sequence (not Batch) is the app's job — plugin reinit deadlocks if SwitchWorktree and FocusPlugin run concurrently.
type OpenIssueInTDMsg ¶ added in v1.0.0
type OpenIssueInTDMsg struct {
IssueID string
}
OpenIssueInTDMsg asks the app to leave global and open this issue in td. The jump itself belongs to the app — this surface only names the issue.
type Render ¶ added in v1.0.0
Content, Size and Render are the shared frame's contract, aliased rather than redeclared so a leaf on this surface and a leaf in the project workspace plugin are the same type.
type RevealMsg ¶ added in v1.0.0
type RevealMsg struct {
Workspace workspaceinventory.Workspace
}
RevealMsg asks the host to show the global Workspaces (Sessions) tab with this workspace selected. Activating an Activity card stays in the global space: the board and the list are two projections of one catalog, so the card names a row the global browser already has, not a project to switch to.
type Size ¶ added in v1.0.0
Content, Size and Render are the shared frame's contract, aliased rather than redeclared so a leaf on this surface and a leaf in the project workspace plugin are the same type.
type ValidationMsg ¶
Source Files
¶
- board_scrollbar.go
- board_wheel.go
- commands.go
- content.go
- content_deck.go
- create_picker.go
- focus.go
- global_actions.go
- global_create.go
- host_catalog.go
- host_notify.go
- host_status.go
- hosts.go
- interactive.go
- layout_requests.go
- live_preview.go
- live_shells.go
- model.go
- open_git.go
- pane_badge.go
- pane_host.go
- pane_move.go
- pane_reposition_modal.go
- preview.go
- preview_diff.go
- preview_doc_edit.go
- preview_doc_links.go
- preview_doc_search.go
- preview_doc_select.go
- preview_history.go
- preview_issue.go
- preview_links.go
- preview_note.go
- preview_resource.go
- preview_tabs.go
- preview_term_bar.go
- preview_terminal_search.go
- remote_actions.go
- remote_resource.go
- rename.go
- sessions_persist.go
- shell_liveness.go
- terminal_link_state.go
- terminal_panes.go
- terminal_split.go
- terminal_split_close.go
- ui_requests.go
- view_flyout.go
- workspaces.go