Extension Icon

Tmux Sessioner

Quick Tmux Session Switcher
AvatarLouis
3,299 Installs
Overview

Tmux Sessioner

Description

This is a extension for raycast to manage tmux sessions.

Features

  • Switch between sessions πŸ”„
  • Switch between windows πŸ”„
  • Attach to sessions/windows automatically with setup terminal πŸ–₯
  • Attach to sessions automatically with setup terminal πŸ–₯
  • Open sessions in a new terminal tab or window πŸͺŸ
  • Create new sessions πŸ†•
  • Bootstrap project sessions: create a folder and run a startup command in one go πŸš€
  • Delete sessions πŸ—‘
  • Kill multiple sessions at once 🧹
  • Search commands and output across all sessions' scrollback πŸ”
  • Rename sessions πŸ“

Searching session output

Search Session Output greps the scrollback of every pane in every session, so you can find that command you ran or error you saw without remembering which session it was in. Matches are grouped by session with surrounding context; press ⏎ to switch there, or open it in a new terminal tab. Tip: raise tmux's history-limit (e.g. set -g history-limit 50000) to search further back.

Bootstrapping project sessions

Create New Session can go beyond switching directories:

  • Create New Folder: creates <New Session Default Directory>/<name> and starts the session inside it. Enable it per-launch in the form, or permanently with the Create New Folder by Default preference.
  • Startup Command: any shell line typed into the fresh session (so the session survives when the command exits). Set a default once in the New Session Startup Command preference β€” e.g. npm run dev, claude, or compose steps like git init && claude β€” and tweak it per-launch when needed.
  • The command accepts the session name as an argument, so Create New Session myproject from the Raycast root search prefills everything: press ⌘⏎ and you get a new terminal tab, in a new folder, with your startup command already running.
  • With the Open in Terminal After Create preference enabled, opening the session in a new tab/window becomes the default submit action β€” plain ⏎ does it all.

How to use

  1. Install Raycast πŸ“¦
  2. Install Tmux πŸ“¦
  3. Install Extension πŸ“¦
  4. Open Raycast and type Tmux Sessioner to see all commands πŸ“Ÿ
  5. First time you need to setup your terminal to attach to sessions automatically πŸ–₯ Setup Terminal
  6. Enjoy Mangaging your sessions πŸŽ‰ Manage Session
  7. You can create a new session with type Create New Session πŸ†• Create Terminal

TODO

  • Label sessions 🏷
  • Prioritize sessions πŸ“ˆ
  • Allow Creating Session with predefined windows πŸ–Ό
  • Create Windows