Skip to content

feat: open SSH connections in new tmux window #18

@culnaen

Description

@culnaen

When purple is running inside a tmux session, pressing Enter on a host suspends the TUI and takes over the current terminal for the SSH session. It would be more ergonomic to open the connection in a new tmux window instead, so the TUI stays alive for quick navigation to other hosts.

Expected behavior

  • $TMUX set → SSH opens in a new tmux window named after the host alias; TUI remains in the original window
  • No tmux → current behavior unchanged
  • Hosts with askpass / Bitwarden session → current behavior unchanged (password relay requires stdin)

Use case

Managing multiple SSH sessions simultaneously — switch between them with prefix + n/p without leaving purple.


Implementation

A working implementation is available at https://github.com/culnaen/purple/tree/feature/tmux-window-support.

The code was written with Claude Code.

Metadata

Metadata

Assignees

Labels

doneDelivered, the world is a better place 😉enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions