Skip to content

Support batch close: accept multiple tab IDs in one invocation #6

Description

@joelhelbling

Request

Extend tabb close to accept multiple tab IDs in a single invocation:

tabb --profile WidestCircle close 123 456 789

Currently close accepts only one ID at a time, which means callers need to script a loop:

for id in 123 456 789; do tabb --profile WidestCircle close $id; done

Motivation

During speedrun/triage sessions, it's common to close 10-30 tabs at the end of a batch. The loop form is harder to allowlist in tools like Claude Code (the for ... do ... done pattern triggers a fresh permission prompt each time), and it's one shell call per tab, so a single multi-ID form would be more ergonomic and faster.

Suggested behavior

  • tabb [--profile X] close <id1> [<id2> ...] — close all provided IDs.
  • Continue on error: if one ID is invalid or the tab is already gone, print a warning and keep going.
  • Exit non-zero if any close failed (so scripts can still detect problems).
  • Single-ID invocation keeps working unchanged.

Related

  • show could arguably accept a list too, but that's less compelling than close.
  • focus is inherently single-target, so probably shouldn't change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions