sessui

command module
v0.4.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

sessui

A tmux session switcher in a popup. Shows what every session is doing — local and on your other machines — and gets out of the way.

sessui

Install

TPM — add to ~/.config/tmux/tmux.conf, then prefix + I:

set -g @plugin 'WillyV3/sessui'

TPM fetches the release binary for your machine (Linux or macOS, amd64 or arm64) and checks it against the release's checksums. No Go needed.

Go:

go install github.com/WillyV3/sessui@latest

Neither — grab a binary from releases, put it on your PATH, and bind it yourself:

bind-key s display-popup -E -w 112 -h 26 sessui

A popup larger than the terminal is an error in tmux. The TPM install shrinks it to fit; with your own binding, use sizes like -w 90% -h 80% if you work in small windows.

Needs tmux 3.7+. Earlier versions open the popup but never redraw it.

Keys

Key Does
↑ ↓ move
any letter filter — no /
enter switch, or create a session named by the filter
← → while creating: pick which machine
ctrl+r rename
ctrl+x kill
ctrl+e settings — columns, width, theme, icons, hosts
esc close

Letters filter, so there are no j/k keys. Arrows are the nav.

Other machines

ctrl+e, arrow down to hosts. Your ~/.ssh/config is already the list — space watches one and its sessions join the table.

hosts   ● build-box   ● laptop 1   ○ desk-pi   ○ old-mac   ›

● up · ○ down · ◌ still asking. Reachable machines sort first. Nothing is polled until you pick something. Put the cursor on a ○ and the row says what ssh said — a mistyped name, a sleeping laptop and a captive portal are different problems.

Outside tmux, sessui -hosts prints the same thing as text: every host, its sessions, or why it did not answer.

enter on a remote session attaches over ssh inside a local session named host/name. After that it's a normal local session — instant to switch back to, and it stops showing twice. Kill and rename work on it too.

Creating: type a name, ←→ to pick a machine, enter. Plain enter still creates locally.

Needs: ssh -o BatchMode=yes <host> true works (key auth, no prompt), and tmux on the far end. Nothing gets installed there. Since it shells out to ssh, your ~/.ssh/config does the work — ProxyJump, certs, agent forwarding, Tailscale names.

Settings

ctrl+e edits the real table, live. esc applies, ctrl+z throws it away, ctrl+r resets.

Popup size lives in tmux, because tmux needs it before sessui starts:

Option Default
@sessui-key s prefix + <key>
@sessui-width 112 the table wants ~112 columns
@sessui-height 26

Everything else is ~/.config/sessui/config.json, written for you by ctrl+e:

Key Values
icons nerd | ascii ascii for terminals without a Nerd Font
theme.palette auto | dark | light auto follows Omarchy
columns [{"id","width"}] which columns, in what order
hosts ["alias"] machines to watch

With cp3

Running cp3? sessui matches each session to its peer by directory and adds a peer column — up or down, what it's working on, ✉ when it owes you a reply. No config; it reads cp3 peers if cp3 is there. Without it the column disappears.

Docs

Architecture · Security · Gotchas

License

MIT

Documentation

Overview

Command sessui is a live-updating tmux session switcher.

Directories

Path Synopsis
internal
session
Package session is the data layer: it shells out to tmux and cp3, parses their output, and exposes a plain Session struct.
Package session is the data layer: it shells out to tmux and cp3, parses their output, and exposes a plain Session struct.
ui
Package ui is the bubbletea layer.
Package ui is the bubbletea layer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL