Skip to content

feat(tui): copy resume commands for all selected sessions#214

Open
jongio wants to merge 1 commit into
mainfrom
idea/bulk-copy-resume
Open

feat(tui): copy resume commands for all selected sessions#214
jongio wants to merge 1 commit into
mainfrom
idea/bulk-copy-resume

Conversation

@jongio

@jongio jongio commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Summary

Extends the copy resume command action (Y) to work with multi-select. When one or more sessions are marked with Space, Y copies a resume command for each selected session, one per line, ordered to match the list. With no selection active, the single-session behavior is unchanged.

This mirrors how h (hide) and * (favorite) already apply to the whole selection, so copy resume now fits the same multi-select workflow.

Changes

  • internal/tui/model.go: handleCopyResumeCommand now builds a resume command per selected session and joins them with newlines. Status reads Copied N resume commands for multi-select, and the existing single-session status otherwise.
  • internal/tui/model_update_test.go: added TestHandleKey_CopyResumeCommand_MultiSelect covering ordered output and the count status.
  • README.md: updated the copy resume bullet and the multi-session bullet to note the new behavior.

Testing

  • go build ./...
  • go vet ./...
  • golangci-lint run ./... (0 issues)
  • go test ./... -count=1 (all packages pass)

Closes #211

When one or more sessions are marked with Space, Y now copies a resume
command for each selected session, one per line, ordered to match the
list. With no selection the single-session behavior is unchanged.

Closes #211

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@jongio jongio added the idea Feature idea from the idea pipeline label Jul 3, 2026
@jongio jongio self-assigned this Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

idea Feature idea from the idea pipeline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copy resume commands for all selected sessions at once

1 participant