it2 tab reorder

Reorder tabs within a window

Synopsis

it2 tab reorder <tab-id> <new-index> [flags]

Description

Reorder tabs by specifying new position for a tab within its window

Examples

# Move tab to first position
$ it2 tab reorder tab-123 0
# Move tab to second position
$ it2 tab reorder tab-123 1
# Move tab to last position
$ it2 tab reorder tab-123 99
# Move current tab to first position
$ it2 tab reorder $(it2 tab current) 0
# Reorder with JSON output
$ it2 tab reorder --format json tab-123 2
# Swap two tabs by moving them
$ it2 tab reorder tab-123 1 && it2 tab reorder tab-456 0

Options

--format (default "table")

Output format (table|json|yaml|text)

--timeout (default "5s")

Command timeout

--url (default "ws://localhost:1912")

iTerm2 WebSocket URL

See Also