r/tmux • • 22h ago

Showcase Terminal Markdown viewer that shows Markdown like it's on GitHub

Post image
151 Upvotes

I look at Markdown files a lot for work and prefer to stay inside the terminal, so this has been a game changer for my flow state.

mddog works by drawing Markdown as the way GitHub (or Obsidian) shows it, then sends that page to the terminal as image strips. It's is fully interactive, too, so you can select text, click on buttons, etc.

Fun fact: mddog requires the the kitty graphics protocol for rendering images, which tmux very recently added support for. A tmux maintainer even helped me with improving tmux image support to make mddog work smoother!

Give mddog a try, and let me know if you run into any issues. Note that you'll need the latest HEAD version, not the release version. See the notes on tmux here for more.

Docs: https://mddog.pages.dev (for installation and features)

Repo: https://github.com/qu8n/mddog


r/tmux • • 3d ago

Showcase I built a small macOS terminal designed around tmux

1 Upvotes

I run several coding agents, each in its own tmux session, and kept losing track of which one was working and which was waiting for me. As the number of sessions grew, constantly attaching and detaching became cumbersome as well.

I built tmt to make managing tmux sessions easier, with live previews, activity tracking, session grouping, and quick switching between sessions.

The terminal is powered by libghostty and reads your existing Ghostty config.

Early release (0.0.1), macOS 14+, MIT licensed.

brew install mmiicchh/tap/tmt-terminal

https://github.com/mmiicchh/tmt

I'd like to hear what breaks with your tmux setup.


r/tmux • • 3d ago

Showcase I built a paid, hosted tmate server (pairterm), for people who don't want to run their own

Post image
0 Upvotes

I use tmate a lot for pairing. The public ssh.tmate.io server has been down for a while, and it has no uptime promise, no accounts, and nobody to ask when it breaks. Self-hosting means running tmate-ssh-server, keeping it patched, and opening port 22 to the world. I got tired of both, so I built a hosted version.

Disclosure: I'm the author, and it costs money.

How it works

  • Sign in, register an SSH key, and point your existing tmate at ssh.pairterm.com.
  • Start a session as usual. It prints the usual ssh line, and your peer joins with that one command.
  • You don't need an account to join a session, only to host one.

What's under the hood (the part I'd expect this sub to care about)

  • The edge is a patched OTP :ssh daemon on the BEAM.
  • The tmate protocol server is a clean-room implementation, written from the protocol spec without reading
  • tmate-ssh-server re-written in Rust
  • Hosting is Hetzner on NixOS.

What I want feedback on

  • Is a prepaid-hours model the right shape for this, or would you rather have a flat monthly price?
  • Which tmate features or client quirks have bitten you on other hosted servers?I'd like to know before you hit them here.
  • Is anything about the trust model a dealbreaker (your terminal passing through a third party)?

Link: https://pairterm.com

Happy to answer questions in the comments.


r/tmux • • 4d ago

Question ssh stops working in long running tmux sessions on MacOS. Solutions?

2 Upvotes

I've done several different web and searches and searches here for this problem, but have only come across unrelated problems and solutions that don't apply to my use case.

I've come across a lot of stuff pointing towards MacOS local network privileges, but don't think that is the problem, based on the behavior I'm experiencing, most other similar issues I've come across are related to long-running ssh sessions, which this is not.

I tend to leave a single terminal window open on my Mac Mini (Currently running 26.6.2), with one tmux (v3.8 installed via Homebrew) session and a few diffferent windows/panes with whatever I happen to have been working on last.

For the most part this works fine, until it doesn't. At some point (days, weeks, hours, not really sure 'cause I haven't tracked it that closely) ssh to local servers will simply stop working with "no route to host". These aren't long running ssh sessions that are timing out or anything of that sort, just the occasional ssh into to a VM on my homelab server that typically connects just fine until one day it doesn't.

Detaching from my tmux session to ssh direct from the terminal works, but within tmux it just stops working until I kill and restart the tmux session, but oftentimes I'll have several different tmux windows with various kinds of work in progress and it's a pain to set it all back up again. Kinda the point of tmux, really...

I'm running MacOS 26.6.2, tmux 3.8 installed via homebrew and I don't think the terminal program/version matters here, as the behavior occurs in every terminal I've tried so far. Including iTerm2, Ghostty, and MacOS terminal.

Anyone else encounter this behavior? Happen to know a fix? It's hard to reproduce other than just "wait for it to happen again", so debugging hasn't been easy. I did check the SSH_AUTH_SOCK values both inside and outside of the tmux session, and they are the same, as one would expect, and I can ping and resolve the local hostname of the server both inside and outside the tmux session. Unfortunately I haven't saved the output of ssh with debug flags, but don't remember anything especially enlightening. I have recently restarted my tmux session, so I can't reproduce the error right this moment, but I'm sure it will happen again.


r/tmux • • 6d ago

Showcase mtxsave: per-project tmux workspaces that survive reboots.

Post image
5 Upvotes

mtxsave gives each of your projects its own tmux workspace that comes back exactly as you left it, even after a reboot. Detaching saves it automatically. It's a single small binary for Linux. It needs only tmux and installs with one command.

https://github.com/riccardoori11/mtxsave


r/tmux • • 7d ago

Showcase Zellij-Jolt: an fzf session picker for Zellij that also makes Claude Code panes reopen the same conversation after a restore

0 Upvotes

r/tmux • • 7d ago

Showcase Same tmux session live on my phone and Mac, and I approve Claude Code from the couch. I built it (Android + Mac)

1 Upvotes

I'm the developer. Binkline is an SSH + tmux client for Android and a terminal app for Mac, built around your tmux sessions. Everything in the video is a real recording, no mockups.

What it does:

- Connect and see every tmux session and window. Tap one and you're attached.

- Same session on both: type on the phone, it shows on the Mac.

- Claude Code asks for permission: a card on the Mac, a notification on the phone. Approve from either.

- What happened?: a one-tap catch-up of a pane you walked away from.

- Review: send a git diff to AI, get ranked findings.

- Ask AI: plain words in, a command out. Insert types it but never presses Enter.

Free, no trial needed: SSH, tmux sessions, reconnect, keys, jump hosts, port forwarding, SFTP, themes. No account, no ads, no tracking.

Pro adds the agent tools (approvals, alerts, What happened?, Review, Binkline AI) and has a 14-day free trial. Cancel in Google Play before it ends and you pay nothing. Honestly, the agent inbox is the part I use most: start Claude Code at the desk, go make coffee, approve from the kitchen.

Honest limits:

- Approve from the phone handles Claude Code's one-line Bash prompts. Codex gets Deny and Open.

- The Mac app isn't notarized yet, so macOS asks you to click Open Anyway once.

Android: https://play.google.com/store/apps/details?id=com.binkylabs.hopshell

Mac: https://binkylabs.com/binkline/mac

If you live in tmux, I'd love to hear what breaks and what your workflow needs.


r/tmux • • 7d ago

Showcase Vimma is now in alpha: a keyboard-first browser for people who live in the terminal

Post image
92 Upvotes

Vimma is a Firefox-based browser for people whose hands rarely leave the home row and it is now in alpha.

Why I built it

My working day lives in Neovim and a terminal: modal editing, a prefix key, panes, sessions. The browser was the one tool that ignored all of it.

I used Vimium and Tridactyl for years, and Vimma borrows a lot from them. But an extension has limits. The keys stop working on the browser’s own pages. GitHub and Gmail take keys like f for themselves. I ended up with three extensions and three keymaps that didn’t know about each other. And tiled panes and a mode indicator belong to the browser window, which no extension can change.

What it does differently

Vimma isn’t an extension. The keymap is part of the browser, so it sees every keystroke before Firefox or the page does. Your keys work everywhere, PDFs included, sites can’t take your bindings, and tabs, panes, workspaces and bookmarks all answer to one keymap: Vim motions plus a tmux-style ctrl+b prefix.

It’s still Firefox underneath, so your add-ons and Sync keep working, and every Firefox security release is rebased and tested automatically.

Features:

  • Modal browsing and link hints from the home row, in PDFs too
  • Workspaces with separate logins, tabs and splits. I keep work, admin and personal fully apart
  • Routing rules send a link to the right workspace by site or by the app that opened it: github.com to work, every link from Slack to work, az login from the admin terminal to admin (app rules on Linux)
  • Split panes with tmux layouts, and no toolbar until you ask for it
  • Tab search and live grep across every workspace
  • One config.toml: more than 300 default bindings, every one remappable, Firefox’s own shortcuts included, applied on save
  • Bookmarks in a plain bookmarks.toml, and downloads handled from the keyboard
  • Opt-in AI agents: Claude Code, Codex, opencode or Copilot can browse through MCP in a workspace of their own, and Vimma asks before anything is paid or sent, for example when your groceries are waiting for payment
  • A built-in agent chat on ctrl+b i, with a local model (Ollama, LM Studio, llama.cpp), an API key, or the Claude Code, Codex or Gemini CLI you already have
  • Follows your desktop theme, or takes your own colours. On Omarchy it follows the current Omarchy theme, and there is an Omarchy theme with Vimma’s default palette
  • No telemetry, no sponsored content, nothing phoning home

Where it stands

Alpha means it works as a daily driver, with rough edges. It runs on Linux and Apple Silicon Macs, with packages for Arch, Debian and Ubuntu, Fedora and openSUSE, an AppImage, and a Homebrew cask, and it tells you when a new release is out. No Windows build is planned.

The name is Finnish. Vimma is a burst of eager, focused energy, as in työvimma, when work flows and the hours disappear. It also happens to starts with Vim.

👉 https://vimma.dev

👉 https://github.com/vimma-browser/vimma

Feedback, bug reports and opinions on the default keymap are welcome.


r/tmux • • 8d ago

Showcase yanker.tmux: solved my tmux copying pains

Post image
47 Upvotes

I kept dropping into copy-mode just to grab one line from test output or a stack trace, and the move-select-yank dance gets old fast. so i made a tiny plugin for it.

hit prefix Y (or @yanker-cmd to map to whatever you want) -> line numbers show up over the visible pane -> type the line number and y. For ranges: 4,6 y yanks the whole range.

A few points for the curious:

  • works in copy mode too, numbers follow the scrolled view
  • copied stuff goes to the tmux buffer + system clipboard (`pbcopy` / `wl-copy` / `xclip`, OSC 52)
  • plain bash, installs with TPM, lmk if a native version would be preferred, but i feel this is already snappy enough

not trying to replace tmux-fingers/thumbs tbh, those are great for hashes and urls. this one is for the homies who want to yank whole lines.

set -g 'hood/yanker.tmux'

Repo: https://github.com/hood/yanker.tmux

kinda early, so feedback and ideas are welcome


r/tmux • • 9d ago

Showcase I built a tmux panel to keep track of a dozen Claude Code sessions across two accounts (and built most of it inside itself)

0 Upvotes

r/tmux • • 9d ago

Question How do I get this to work.

2 Upvotes

I have a MacBook Pro - I use Iterm2 as my Terminal - there are several local and remote servers that I want to have sessions up for.

I am running zsh and oh-my-zsh with the all of the remote logins (using the jonathan theme...

I have tmux installed on the remote servers (and have tried adding oh-my-tmux to some to see if it makes a difference).

the command to connect is "ssh -t userid@ipadressorhost "tmux -CC new -As sessionname".

It connects, but I am not seeing the tmux bottom status bar... WQhat might I be doing wrong?


r/tmux • • 10d ago

Showcase Tmux Mobile: Android app for your tmux sessions over SSH.

14 Upvotes

I'm a solo developer. I built Tmux Mobile, an Android app for controlling my tmux sessions over SSH, nothing else. You log in to your server and go straight to your sessions: open one, switch between them, start a new one. I built it for myself, and it has turned into my daily driver for tmux on the go. I think it's genuinely useful, so I'd like to share it with you.

I need your help to get it into the Play Store

New developer accounts on Google Play have to run a closed test with real testers for 14 days before an app can go public. My first round used testers from generic "test my app" subreddits. Technically everything worked, but Google rejected it because the testers didn't really use the app. Without a tmux server, you can't. So I'm asking the people it's actually made for: real use cases and real feedback.

How to become a tester (about 2 minutes):

  1. Join the Google Group (this is how Play gives you access): https://groups.google.com/g/tmux-mobile-closed-testers
  2. Opt in to the closed test with the same Google account: https://play.google.com/apps/testing/com.tmux.mobile
  3. Install it from Google Play: https://play.google.com/store/apps/details?id=com.tmux.mobile

Then use it with your own tmux setup whenever you'd normally reach for your phone: check a build, tail logs, restart a service. Please keep it installed for the full 14 days, because Google counts how long testers stay opted in.

Feedback I'd love: anything that breaks (rendering, status line, vim/htop/lazygit, keyboards), servers that won't connect (error message, not your hostname), and what you're missing for daily use. Comment here or use the private feedback on the Play Store page.

Features

  • Free. No ads, no subscription, no in-app purchases.
  • No cloud, everything local. The phone talks straight to your server. No account, no relay, no analytics or tracking. Passwords are never saved, and profiles and host keys are stored encrypted on the device.
  • Sessions first. See all your tmux sessions after login, open one with a tap, switch via the session bar, and create new named sessions.
  • Command suggestions as you type, from your server's shell history, $PATH, subcommands (git, docker, systemctl, ...) and paths. A tap inserts the suggestion; Enter is always yours.
  • Touch bar with Ctrl, Esc, Tab, arrows, Home/End, PgUp/PgDn and Ctrl-C/D/Z.
  • Native select & copy with drag handles, plus pinch-zoom for the terminal font.
  • Multiple servers at once. Connections stay alive in the background, with one notification to disconnect all.
  • Secure by default. Host keys are trusted on first use, the app refuses to connect if a key changes, and it uses strong SSH algorithms only.
  • Full colors, Unicode and scrollback. English, German, Spanish and French.

Requirements: Android 8.0+, and an SSH server with password login and tmux.


r/tmux • • 10d ago

Question Let's compare Tmux with Rex on a real issues.

Post image
78 Upvotes

Hey folks,

Tmux user here. We all have heard there is a Rex multiplexer making hype around the terminal community, and many people compare them two. I don't see the point in comparing visual style because we can customize Tmux in any way (alongside terminal prompt), but what is actually important is how it feels to use both when accomplishing a real goal. Ideally the issue should be developed on the remote server, therefore we can see if there are actual benefits for using Rex.

I did my test, but honestly the goal I was accomplishing is quite trivial: new Docker container setup with Ansible playbook for Basic Memory context layer, and MCP endpoint connection to the existing Executor container on the same server. Some git work included, but the whole issue took me around an hour to develop. I was doing it in both Tmux and Rex environments at the same time, and recorded a video about it: https://youtu.be/8o7ZIeVrPSE?si=fxTeXmNn8Z0XwQ0k

But I am really curious about your experience. Have you tried using Rex on a serious day-long remote issues involving manual code changes with Vim, extensive git flows, multiple runtimes? What do you think?


r/tmux • • 10d ago

Question Any way to turn on mouse mode for scroll but not click/change pane?

5 Upvotes

Hey y'all! From reading the docs I'm fairly sure this isn't an option in the newest versions but figured I'd double check whether anyone's found a workaround :)

I love the default/mouse on scroll behavior and ideally would use that all the time. However it drives me NUTS when I click in the terminal to refocus the window and it changes my tmux pane too, so I haven't had it in me to leave mouse mode on. I feel very ambivalent about the rest of the mouse features lol.

Has anyone else run into this, and if so, have you found a solution?


r/tmux • • 10d ago

Other Driverr 1.2.1 Released

Thumbnail reddit.com
1 Upvotes

r/tmux • • 11d ago

Showcase I made an iOS terminal on top of tmux control mode: every session is a native tab

2 Upvotes

I keep a lot of long-running tmux sessions on a Linux box at home, and I wanted to get at them from my phone without fighting copy-mode on a touchscreen. So I built pmosh, an iPhone and iPad client on top of control mode (tmux -CC), the same mechanism iTerm2's tmux integration uses.

What control mode buys you on a phone:

  • Each tmux session on the host is a native tab. Swipe between them, or hold + to open a tab for every session that's already running.
  • Scrollback is tmux's own history in a native scroll view, so you flick through it and select text with the normal iOS handles.
  • Two rows of keys above the keyboard for what iOS doesn't have (Esc, Ctrl-C, arrows, Tab, paging). You can rearrange them and add macros.
  • OSC 52 from the host lands on the phone's clipboard. Paste or drop an image or a file and it's uploaded to the host with the path typed in for you. Camera and photos keys do the same with a photo you take or pick.
  • Tabs come back the way you left them after iOS kills the app.

Underneath it's plain SSH with an ed25519 key generated on the device. No account needed, no analytics, nothing between you and your host. There's no mosh-style roaming yet: when the phone comes back, it re-dials and re-attaches, and what was printed in the meantime is there in the scrollback.

Two tabs are free. Unlimited tabs is a subscription ($3.99/month or $29.99/year, with a 7-day trial).

App Store: https://apps.apple.com/app/id6788939205

I'd like to hear what the control-mode handling gets wrong on your setup: older tmux versions, huge scrollback, unusual configs.


r/tmux • • 12d ago

Showcase Giving a Pi coding agent its own tmux pane for a code review

0 Upvotes

I wrote a Pi extension that can start another interactive Pi session in a visible tmux pane. One way to use it during a review is to ask a specialist to trace the callers of a function while you read the diff in the original pane. Switch panes and you can ask the specialist about a particular caller in the same conversation.

From inside tmux, run pi -e npm:pi-subagentura and try: “Open a specialist in a visible tmux pane. Trace the callers of this function and tell me which ones depend on its return value.” You can also send the follow-up from the original Pi session.

https://github.com/lmn451/pi-subagentura


r/tmux • • 13d ago

Tip tmux-native alternative to herder/rex

0 Upvotes

hey guys, not sure how many of y'all are herdr/rex-curious, but I gave em a try and still prefer tmux. I've been homegrowing my own herdr-like tool for the past year or so since before herdr was even a thing and with the popularity of herdr seems like it's a thing a lot of people might want.

herdr and rex are both pretty cool, but they basically force you to ditch tmux to adopt them, and I really don't want to do that. if you're in the same boat as me, maybe you'll like what I've cooked up with pmux! https://github.com/cosmicbuffalo/pmux

let me know if you give it a try! happy to answer any questions about it too


r/tmux • • 14d ago

Showcase Tmux on iPad

3 Upvotes

Shameless plug: I’ve just released an app on iPad which connects to tmux through SSH running on your host system. I was getting a bit fed up with using mosh, or et, to connect to my home machine to run cli commands, and also needed something that was going to keep running when I disconnected, which I was doing with tmux through the ssh/mosh/et tunnel.

So I created an app for my iPad which cut the middle-men out and connected straight to tmux through SSH, and gave me tmux’s tabs and panes as tabs and splits on the iPad.

I’m still developing it and adding features, but today it was released on the App Store. If you fancy taking a look, it’s here: https://termoor.app/

I hope others find it as useful as I do, and if you have any feedback I’d love to hear it.


r/tmux • • 14d ago

Question Best prefix for a user of vi, tcsh, bash?

16 Upvotes

So ctrl-b is a vi key that I use regularly and it causes much frustration.

I've read threads where a lot of people recommend ctrl-A (from screen I guess?), but this is beginning of line in both tcsh and bash, as well as all the text input fields on MacOS browsers (but not Linux browsers don't get me started).

I'm asking because this must be a solved problem right? People all going down the same path of "try this key" "Oh wait I forgot that is a via thing that is deeply ingrained in me".

I have used vi forever, and most of the original vi keys are deeply ingrained, as well as some vim things (like Ctrl-R). And as I said the shell command-line stuff (which is possibly more emacs-derived?) is still deeply ingrained).

Ctrl-W I guess is erase previous word (or something) in some shells but I don't use that one at all. But I'm worried it may conflict with "close window" in some terminal apps? Maybe?

Currently Ctrl-O is my front-runner. I haven't thought of a conflict yet, but haven't actually tried it.

What about alt-<key> combinations? Strictly speaking these are not traditional terminal sequences and maybe are not guaranteed to work in terminal programs, but pragmatically are there modern terminal programs that don't convert these into a consistent character sequence? (It is my understanding that Super- is right out because it is typically just a window-level event and not ever a sequence of terminal characters.)

[Note, I thought I asked this earlier this week but can find no such post, nor any moderator rejection of a post, nor any open tab where I wrote this out but didn't send it. Apologies if it did post and I somehow totally missed it.]


r/tmux • • 15d ago

Showcase multiplexer-sidebar: a Herdr-like sidebar that doubles as a live-preview dashboard for tmux — single script, zero dependencies

Thumbnail gallery
92 Upvotes

Hi everyone,

If you have ever used herdr, its sidebar is pretty iconic: it sits quietly on the side of your workspace and shows every project and every running coding agent in one clean list, so you can jump anywhere with a keystroke.

I built multiplexer-sidebar (also aliased as multiplexer-dashboard) to bring what shines in herdr to tmux, while also letting it work as a floating dashboard with a live terminal preview.

Why bring this to tmux, and why make it a single zero-dependency script

Recently herdr shifted its focus to its new desktop and mobile apps, which are built on a separate server/client stack and don't share agents with the open-source herdr TUI. When a company pivots to a new product, the original tool often fades away the way Arc did. Moreover, dedicated desktop and mobile apps mean lock-in at both ends, whereas a classic TUI works in any terminal over plain SSH.

For those of us who live in the terminal, we wanted to keep our favorite TUI workflow alive. And tmux is a true classic—it has been around for decades, runs on almost every server, and is going to last forever. Bringing the herdr sidebar experience to tmux means you get that workflow on a foundation that isn't going anywhere.

To match that philosophy, multiplexer-sidebar is a single standalone Python script using only the Python 3.9+ standard library (not even curses):

  • Nothing to compile or install: You don't need a compiler, pip, or a virtual environment. Just copy-paste or curl this single file onto your laptop or any remote SSH server and run it.
  • Modern Ratatui / Bubble Tea feel: Even though it is one stdlib file, the custom renderer is built to feel like a modern TUI framework, with automatic dark and light theme detection, mouse clicks and scrolling, responsive layout resizing, and live color pane previews.

Both a Herdr-like sidebar and a live-preview dashboard

You can use the script in two ways, or combine both:

  • Sidebar mode (--sidebar / --compact): Great if you like the herdr work style—one tmux session per project, and multiple tmux windows inside each project. Keep it open in a narrow 30-column split on the left to see all your sessions (with h and l to fold or expand their windows) and every active coding agent (Claude Code, Codex, OpenCode, Pi, Gemini, etc.) right below. On smaller screens, --compact shrinks it down to a 3-column strip (or simply resize the pane below 24 columns and it switches automatically).
  • Dashboard mode: Bind a key to pop up a centered overlay. As you move through your sessions, windows, and agents, the right side renders a live preview of that terminal pane so you can glance at what is happening before pressing Enter to jump there.

(Note on agent working status: live agent status reporting like working/blocked/done is currently supported via OSC 7501, which already works in Zellij 0.46, and tmux support is WIP through other approaches like hook based approach or screen detection.)

One script across tmux, Zellij, and plain shells

If you use tmux on some machines and Zellij on others—or if you ever switch between them—this single script works in both:

  • Same look and muscle memory: You get the exact same UI and vim-style keys (j/k to move, h/l to fold windows/tabs, / to filter, and n/r/x to create, rename, or kill sessions) across tmux and Zellij without having to think about each multiplexer's CLI commands.
  • Works outside any multiplexer too: You can run multiplexer-sidebar in a plain shell right after SSH-ing into a machine, before attaching to tmux or Zellij. It lists every running session across your installed multiplexers, shows a live preview of each pane, and attaches directly to the one you pick.

Quick install and tmux setup

Install the single file:

curl -L -o ~/.local/bin/multiplexer-sidebar \
  https://github.com/milanglacier/multiplexer-sidebar/releases/latest/download/multiplexer-sidebar
chmod +x ~/.local/bin/multiplexer-sidebar

To open the floating dashboard in tmux 3.8 (~/.tmux.conf):

bind tab new-pane -O -x80% -y80% -X10% -Y10% -c '#{pane_current_path}' multiplexer-sidebar

To toggle the persistent sidebar on the left (~/.tmux.conf):

set -g focus-events on
bind b split-window -hbf -l 32 multiplexer-sidebar --sidebar

(Use -l 3 multiplexer-sidebar --compact if you prefer the 3-column compact strip.)

Repo: https://github.com/milanglacier/multiplexer-sidebar

Would love to hear your thoughts or feedback if you try it out!


r/tmux • • 16d ago

Showcase Fable 5.2 is insane!

0 Upvotes

tmuxbox: every tmux pane on one 3D bean. Type to jump, Enter for a real terminal


r/tmux • • 17d ago

Showcase Getting a screenshot path into the right tmux pane from macOS, with a check that it actually arrived

0 Upvotes

I run Claude Code and Codex CLI in tmux, locally and on a server, and wanted a screenshot to land in the right pane without saving the file, finding the path and pasting it by hand. I ended up building a small macOS menu bar app for it (PaneDrop, free, 1.0.0 today), and the tmux part turned out to be the interesting bit, so here is how it talks to tmux:

  • Finding panes: list-panes -a with format strings, then a process check to see which panes are running an agent. The list shows the session and project folder.
  • Typing: set-buffer -b <name> -- <text> then paste-buffer -p -b <name> -t <pane>. The -- matters: without it a payload starting with - gets read as options. -p only requests bracketed paste; markers appear only if the program in the pane has turned it on, so multi-line text is sent only when #{bracket_paste_flag} says the pane accepts it. Without bracketed paste, paste-buffer turns each newline into a CR, which would submit partial prompts.
  • Did it arrive? capture-pane -p -J before and after, so it can tell its own paste from text that was already on screen.
  • Cleanup: delete-buffer on every path, success or failure, so no named buffers are left behind.
  • No Enter: the paste path has no send-keys at all. Submitting is a separate action you have to turn on.
  • Over SSH: it uses your own OpenSSH config, uploads the image to the server, lists and pastes into tmux panes there the same way, and types the remote path.

Needs tmux 3.3 or later. Mac side: Apple Silicon, macOS 14+. https://panedrop.app

Curious whether anyone has a cleaner way to confirm a paste landed than diffing capture-pane output.