One Neovim, every window a real terminal pane.
The same demo in Rex, zellij, herdr and the Herdr app.
curl -fsSL https://raw.githubusercontent.com/spiritledsoftware/neopane/main/install.sh | bash # or: brew install spiritledsoftware/tap/neopane # or: cargo install --locked neopane neopane notes.md It needs Neovim 0.12 or later, on macOS or Linux. It is very early: bug reports are welcome on GitHub Issues.
Formerly neorex. Not the original neorex by Alex Locke, which this began as and continues under that name.
neopane runs one Neovim in the background, a daemon, and shows it in every terminal attached to it. Buffers, registers, undo and language servers are shared by every terminal showing it.
Without a pane provider, or where it can't give a window a terminal, the window is drawn in the pane it was opened from, laid out as Neovim lays out splits (ADR 0009). A tab page with no tab page area is drawn whole in the pane it opened in, and gt swaps what that pane shows, as plain Neovim swaps its screen (ADR 0012). A float group with no float group pane, as with a pane provider that has no open_float, past four float group panes, or when one fails to open, is drawn in the pane it was last entered from; while it's current and too big for that pane, Neovim's screen shrinks to the pane so the picker lays itself out to fit (ADR 0010).
No pane provider is needed: in a plain terminal, neopane is Neovim drawn by a daemon, which you can attach to from other terminals, leave running, and open files in from its own :terminal.
Very early and rough: expect bugs and missing features.
neopane has been built with heavy use of AI, first in Zig and now in Rust. Much of the code still needs cleanup and better design, which is happening incrementally. Contributions are welcome: see CONTRIBUTING.md.
On macOS or Linux, the latest release, as ~/.local/bin/neopane, with npane linked to it as a shorthand:
brew install spiritledsoftware/tap/neopane With Cargo (Rust 1.88 or later):
cargo install --locked neopane Either way, a running daemon keeps the binary it started with, so start a new one after an upgrade.
From a checkout, with Rust and just, to install it, optimized, as ~/.local/bin/neopane, with npane linked to it as a shorthand:
just install just prefix=/usr/local install It replaces the binary rather than writing over it, which on macOS gets a new build killed at launch. A running daemon keeps the binary it started with, so start a new one to use a new build. just install removes the nrex symlink an install before the rename made, and warns about a neorex binary beside it without removing it, since that may be the original neorex.
That first attach chooses the daemon's pane provider, which gives windows terminals of their own (see Pane providers), without holding anything up: the first window shows at once, and the other windows of the current tab page, such as -O a b's second, wait for the choice and then open beside the first. The other tab pages opened at the start, such as -p a b's second, each get their place when first visited, as one opened later does.
Each daemon has a daemon name: the name of the directory neopane was started in, cut to its letters, digits, ., _ and -, and to 32 characters (default if nothing is left), with -2, -3, … added while a daemon of that name runs. ps shows it as neopane daemon work.
If stdin isn't a terminal, neopane prints neopane: stdin isn't a terminal; to start a daemon without one, use --detach and exits 1.
A failed start is one line on stderr and exit 1, such as neopane: work didn't start: Neovim exited at once (status 1): Unknown option argument: "--fo" (log: /tmp/neopane-501/work/log). Unless a shell started neopane as a job, as when it is a Rex block's own command, it adds (press a key) and waits, so the line can be read.
Any other terminal can show the same Neovim: run neopane attach there. It attaches to the one daemon running; with several, name one with --name, or give its daemon address, --address /tmp/neopane- / /sock (under $NEOPANE_TMPDIR if set). It shows an unshown window, Neovim's current one first, then by tab page and window order, so after neopane -p a b c a second terminal shows b; with none, a new window, as :split opens one. The window it shows becomes current.
neopane attach notes.md opens notes.md there in a new window instead, and neopane attach +12 notes.md puts the cursor on line 12. A relative path is taken from the directory attach runs in. attach takes only [+LINE] [FILE]; anything else is a usage error, neopane: attach takes [+LINE] [FILE].
Closing that terminal closes its windows, and only those; the terminal goes back to its shell. With no pane provider yet, the attach chooses one, as the first did. In the pane provider's reach, as in a Rex block of the chosen Rex session, :vsplit there opens a pane beside it; out of its reach, :vsplit draws the new window in that terminal.
attach finds its daemon by --address, then --name, then $NEOPANE once proven (see Inside a :terminal), then the only one running. It never starts one. When it finds none, it says why in one line and exits 1:
neopane --name work attaches to the daemon named work if it runs, exactly as neopane attach --name work would, and otherwise starts a daemon named exactly work, with no -2 added. So neopane --name work in two terminals shows one daemon in both. A name is 1 to 32 letters, digits, ., _ and -, and not . or ..; anything else exits 2 with neopane: --name: use 1-32 letters, digits, '.', '_' or '-'. A running daemon takes only [+LINE] FILE: neopane --name work -O a b with work running exits 2 with neopane: work is running, so it takes only [+LINE] FILE; -O is for starting a daemon (open windows from Neovim).
neopane --address A [+LINE] [FILE] is exactly neopane attach --address A [+LINE] [FILE], and never starts a daemon. --name and --address together exit 2.
neopane list lists the daemons running, neopane status shows one, and neopane kill ends one, refusing while it has unsaved changes unless --force (see list, status and kill).
A daemon lives while a terminal shows one of its windows, or one is on its way (ADR 0003). Panes that show only floats, such as a picker's, don't count. When the last one goes, whatever closed it, the daemon sends Neovim FocusLost, so an autosave plugin can save, and waits for Neovim to be idle, a second at most. Then:
A terminal that attaches while the daemon waits keeps it. One that attaches once Neovim is ending is refused with stopping. :q in the last window still quits Neovim, as :q always does.
When neopane [+LINE] [--] FILE is about to start a daemon (--name N included, when N isn't running), from a terminal (stdin and stderr), and without --detach, it first looks for an unattached daemon holding unsaved changes to FILE: it reads the unsaved file of each running daemon, and matches FILE as the system opens it, links and .. resolved in the part of the path that exists, the rest normalised as written. The first such daemon by name is asked about, on stderr:
neopane: notes.md has unsaved changes in notes (also in notes-2), which no terminal shows. Attach to it? [Y/n] (also in …) names the other daemons holding it, if any. Answer y, Y or Enter to run neopane attach --name notes [+LINE] FILE; n or N to start the new daemon as asked; Ctrl-D or Ctrl-C to exit 1 with nothing started. Anything else asks again. It is asked under EDITOR=neopane too.
A daemon sets $NEOPANE to its address in its Neovim's environment, so its :terminals have it. There, neopane notes.md opens notes.md in a new window of that Neovim, split off the window showing that :terminal (else the current one), so a pane beside the terminal's in Rex, and returns once you're done with it: a waited file (ADR 0015). It is done when no window shows it any more (:wq, :q, ZZ, :bd, or its window showing another buffer), or its buffer is unloaded or deleted. :w alone isn't done. It prints nothing and exits 0, with no time limit. neopane +12 notes.md puts the cursor on line 12, and -- may come before the file. Naming that daemon with attach, --name or --address does the same.
--no-wait returns as soon as Neovim has the window, or exits 1 after 10 s with neopane: work hasn't opened notes.md in 10 s (is Neovim waiting at a prompt?). Outside a daemon's :terminal, --no-wait does nothing.
Ctrl-C exits 1 quietly. Only [+LINE] FILE opens there: bare neopane exits 1 with neopane: already inside work's Neovim; open a file with neopane FILE, and -p, -O, -S, +cmd or several files exit 2 with neopane: inside work's Neovim, only [+LINE] FILE can be opened; use :tabedit, :vsplit or :source there. --detach always starts a new kept daemon, even there.
Inside needs proof: $NEOPANE names a running daemon of this attach protocol version, and this process's terminal (the first of stdin, stdout and stderr that is one) is one of its Neovim's :terminals; a process with no terminal is trusted on the address alone. A tmux server or terminal app started from a :terminal copies $NEOPANE into terminals that aren't Neovim's. Unproven, $NEOPANE is ignored, neopane acts as anywhere else, and it warns:
EDITOR=neopane, with no flag, works everywhere. In a daemon's :terminal, the file is a waited file, as above, so git commit gets its message once you :wq. Elsewhere, neopane FILE starts a daemon for the file and returns when its Neovim quits, with Neovim's status, as nvim does: :cq aborts git commit and git rebase -i. In a daemon's :terminal, :cq quits that whole Neovim, as plain Neovim would; to abort one commit, leave its message empty. Callers that add +N (less) or -- (visudo, sudoedit) before the file work too.
To send edits to a running daemon from outside it, set EDITOR="neopane --name work": it attaches, and returns when that pane ends. The value has a space, so it needs a caller that splits it, as git does; macOS crontab -e doesn't.
neopane --detach [--name N] [NVIM-ARGS] starts a kept daemon and needs no terminal. Neovim starts at once, with NVIM-ARGS, and neopane prints only the daemon's name (work-2) on stdout once Neovim answers; it doesn't wait for VimEnter. neopane attach then shows it: the first attach shows Neovim's current tab page, and neopane attach FILE opens FILE beside the windows NVIM-ARGS opened. Started on no file, the empty window Neovim starts with closes once FILE shows, as the window a last pane leaves does.
A kept daemon stays kept for its whole life: it outlives its last pane with nothing unsaved, so list shows kept after its panes and status says it stays until killed, started with --detach. It ends only when Neovim quits, on neopane kill, on a signal, or on a crash. While it has no pane, it lists its unsaved files in unsaved, as above.
A failed start is one line on stderr, neopane: work didn't start: (log: …), and exit 1, with no key wait. --detach --name N with N running exits 1 with neopane: N is already running; attach with neopane attach --name N. With --address or --provider it exits 2: --provider is for the terminal that chooses the pane provider.
A pane provider gives Neovim's windows terminals of their own, and places and focuses them: a terminal provider, a layout provider, or both. A daemon has at most one at a time, chosen by a self-attach, as neopane and neopane attach are: by your config, or without one, tmux in a tmux pane, herdr in a herdr pane, zellij in a zellij pane, the Herdr app in a Herdr app pane, Rex in a Rex block and none elsewhere.
The daemon keeps its pane provider while a terminal in its reach is attached or on its way, and drops it otherwise, as when the last of them closes; one that fails as a whole, as Rex does when it quits, is dropped at once, with a warning in Neovim. New windows are then drawn in the terminals they were opened from, and the next self-attach chooses again: the terminals attached before are checked again, and those in the new pane provider's reach rejoin it.
--provider P on neopane or neopane attach, else $NEOPANE_PROVIDER, is a hint for that choice: none chooses none, even in Rex, without running your config; any other value reaches your config as attach.provider. It counts only when this attach chooses the pane provider; otherwise the daemon logs hint P ignored: work keeps rex, and shows nothing.
With no pane provider, or when the choice fails, every window is drawn in the terminal it was opened from, laid out as Neovim lays out splits, tab pages swap in the pane they opened in, and float groups are drawn in the pane they were entered from. Each terminal attached is a layout area of its own, and Neovim's screen is the current pane's size.
Rex's pane provider is built in. An attach chooses Rex when REX_SERVER and REX_SESSION are set in its environment, as Rex sets them in every Rex block: the daemon connects to that Rex server and Rex session, as the client neopane, and each window gets a Rex block of its own beside the one it was opened from, labelled neopane. Rex checks the choice: the terminal must be the Rex block REX_BLOCK names, its terminal compared with the terminal of that block's process. The choice fails, with a warning in Neovim, in a terminal started from a Rex shell, such as a Ghostty window, which inherited stale REX_*, or one whose REX_BLOCK is unset or names another Rex block. A later attach is in Rex's reach in a Rex block of the same server and Rex session, found by its REX_BLOCK. The variables, read from the attach's environment, never the daemon's own:
Rex's connection lasts as long as Rex is the daemon's pane provider: it closes when no Rex block is left attached, or when Rex quits or fails, and a new one opens when Rex is chosen again, its Rex blocks rejoining.
Neovim's screen is the size of the current pane's layout area, its Rex window (ADR 0008). A tab page's windows in its Rex floating pane are placed as Neovim's layout has them, at about their sizes, so Diffview's file panel is on the left, and follow the layout as windows come and go; a window Neovim resizes there, such as with |, resizes its Rex block.
neopane provider check, in a Rex block, checks Rex's connection: it shows the Rex server, its version and API revision, whether this build needs a newer one, and whether Rex proves this terminal is the Rex block REX_BLOCK names (docs/config.md).
To try a build without it taking the focus in your own Rex session, which neopane does as it works, run it in a Rex block of a Rex session of your own, made with rex new.
tmux's pane provider is built in, as a table of capabilities that each run neopane itself (ADR 0016). An attach chooses it when TERM_PROGRAM is tmux and TMUX is set, as in every tmux pane: each window gets a tmux pane of its own, split beside the one it was opened from, and each tab page a tmux window of its own; h/j/k/l move tmux's focus across the panes. A group of floats you enter, such as a picker, gets a tmux floating pane, framed, on tmux 3.7 or newer; older ones draw it in its pane. On tmux 3.8 or newer, a move between panes with tmux's own keys moves Neovim's current window at once, through wait-for -E waiters that attach no client; older ones learn it at the next key. tmux checks the choice: the terminal's tty must be one of that tmux server's panes', so a TMUX inherited by another terminal chooses none, which only the log tells. In a tmux started from a Rex pane, whose panes inherit Rex's variables too, the terminal's tty tells them apart (docs/config.md). It needs tmux 3.2 or newer. neopane provider show tmux prints its table, which neopane.builtin.tmux() returns for your config to change (docs/config.md); --provider none opts out.
herdr's pane provider is built in too, as a table whose capabilities run neopane itself, speaking herdr's socket API. This is herdr the terminal multiplexer; the Herdr desktop app has a pane provider of its own (Herdr app). An attach chooses it when TERM_PROGRAM is herdr and HERDR_SOCKET_PATH is set, as in every herdr pane: each window gets a herdr pane of its own beside the one it was opened from, in its herdr tab. herdr's split can't run a command, so the pane is made in a tab of its own, running the attach with no shell, and moved (ADR 0017): that tab flashes in herdr's tab bar for a frame. herdr checks the choice: the terminal must be the one of the pane HERDR_PANE_ID names, so herdr's variables inherited by another terminal choose none, which only the log tells. It needs herdr 0.9.5 or newer. Focus follows Neovim's current window both ways, and a tab page gets a herdr tab of its own; herdr has one focus per server, so every herdr client attached follows. Panes are moved and resized as Neovim lays its windows out, a move within a herdr tab going out to a tab of its own and back (ADR 0018), and a zoomed pane is shown alone. neopane provider show herdr prints its table, which neopane.builtin.herdr() returns for your config to change (docs/config.md).
zellij's pane provider is built in too, as a table whose capabilities run neopane itself. An attach chooses it when ZELLIJ and ZELLIJ_PANE_ID are set, as in every zellij pane: each window gets a zellij pane of its own, split beside the one it was opened from, a group of floats you enter, such as a picker, a pinned zellij floating pane, and each tab page a zellij tab. h/j/k/l move zellij's focus. zellij can't size a pane exactly, so a pane keeps the size zellij gives it. It needs zellij 0.46.0 or newer. neopane provider show zellij prints its table, which neopane.builtin.zellij() returns for your config to change (docs/config.md).
The Herdr desktop app has a pane provider of its own, herdr-app, apart from herdr's (ADR 0019): its panes show terminals an hc core runs, which it reads through the core's socket, and it acts on the app's window through the herdr-app command (on PATH, else ~/.local/bin/herdr-app). An attach chooses it when HC_TERMINAL_ID and HC_TERMINAL_SOCKET are set, as in every Herdr app pane; never by TERM_PROGRAM, which says ghostty there. The Herdr app checks the choice: the terminal must be the live hc terminal HC_TERMINAL_ID names, on this terminal's tty, shown in a Herdr app pane of a window that answers. Its reach is that hc core and the app's home (HERDR_APP_HOME); terminals of remote spaces are refused. No version is required: a method the core lacks is named, with both versions, and neopane provider check shows both. Each window gets a Herdr app pane of its own, split beside the one it was opened from and running the attach with no shell, the hc core's keep off so it closes for good (ADR 0020), and each Neovim tab page after the first a Herdr app tab of its own, in the same space, without showing it. h/j/k/l move the app's focus across its panes. A zoomed pane isn't seen: Neovim lays out as if its tab were unzoomed. Sizes are set as the app's weights, in the first tab page. neopane provider show herdr-app prints its table, which neopane.builtin.herdr_app() returns for your config to change (docs/config.md).
Your own Lua file, ~/.config/neopane/init.lua, chooses the pane provider for each self-attach: a built-in, a table of capabilities, each a command neopane runs, or a pair of a terminal provider and a layout provider, such as Ghostty with AeroSpace (ADR 0007). docs/config.md describes the file, and docs/capabilities.md the contract of each capability's command.
A config that fails shows one warning in Neovim, neopane: config: …, and none (config error) in neopane list; the log has every problem (docs/config.md).
neopane --help (also -h, help, or -h after any command) prints, on stdout:
Only the first argument can be a command word (attach, list, status, kill, provider, help, version), and it runs the command even when a file of that name exists, with a note on stderr, neopane: list is a command; to open the file, run neopane ./list. detach is held for a later command: it exits 2, neopane: detach isn't available yet; to open a file named detach, run neopane ./detach.
neopane list [--json] asks every running daemon at once, giving each 2 s, and prints a row per daemon, sorted by name, under a header that is always printed. Directories whose daemon is gone are skipped. With none running, stderr also gets neopane: no daemon is running, and it exits 0.
NAME PANES UNSAVED PROVIDER DIRECTORY notes 0 2 none ~/notes scratch 0 kept 0 none /tmp/scratch work 3 0 rex ~/src/neorex old - - - (neopane 0.0.9, attach protocol 0) stuck - - - (didn't answer in 2 s) PANES: the Neovim panes attached, window and float group panes alike, with kept after it for a kept daemon. UNSAVED: how many buffers have unsaved changes. PROVIDER: the pane provider (a pair as T+L), (choosing) while your config runs or the choice is being confirmed, or none, none (can't start), none (config error), none (find refused) or none (hint none). DIRECTORY: Neovim's global working directory, ~ standing for $HOME. A daemon of another attach protocol version shows its build and version instead; one that didn't answer, why. neopane status [--name N | --address A] [--json] finds its daemon as attach does, with the same messages, and prints it:
work directory ~/src/neorex panes 3 unsaved README.md, src/main.rs stays while something is unsaved provider rex has: open_beside, open_float, open_tab_page, close, find, place_beside, resize, focus, focus_direction, report_layout, events found unsupported: open_float address /tmp/neopane-501/work/sock pid 4242 build neopane 0.0.0 (a1b2c3d, 2026-11-09), attach protocol 1 log /tmp/neopane-501/work/log Unsaved files are shown relative to the directory. stays reads until killed, started with --detach for a kept daemon. found unsupported lists the capabilities found unsupported since the pane provider was chosen. A daemon of another version shows only its name, pid and build, then (another version: only its name, pid and build are known). A daemon that doesn't answer in 2 s is a failure: neopane: work didn't answer in 2 s (log: …), exit 1. Neither list nor status waits on Neovim: the daemon answers from what it tracks.
neopane kill [--name N | --address A | --all] [--force] ends a daemon, found as attach finds one, or with --all every one running. It never sends a signal: it asks the daemon to stop, and the daemon ends its attaches (stopped, exit 0), closes the terminals it asked the pane provider for, and ends Neovim by closing its channel, so swap files are kept. While Neovim has unsaved changes, the daemon refuses unless --force, and nothing ends:
neopane: work has unsaved changes: README.md, src/main.rs (save them, or kill --force to keep them only in swap files) kill returns once the daemon is gone, printing nothing, and waits 10 s at most: neopane: work is still ending after 10 s (pid 4242) or neopane: work didn't answer in 10 s (log: …), exit 1. With several running and no --name: neopane: 3 daemons are running (notes, scratch, work); choose one with --name, or use --all. With none running, neopane: no daemon is running and exit 1; --all then exits 0. --all prints a line per refusal or failure, and exits 1 if there was any. --force loses unsaved changes under -n, which keeps no swap files.
--json prints, for list, {"daemons":[…]} with one object per row, and for status the one object:
{"name":"work","address":"/tmp/neopane-501/work/sock","pid":4242, "build":"neopane 0.1.0 (a1b2c3d, 2026-11-09)","v":1,"same_version":true, "dir":"/Users/ian/src/neorex","panes":3,"unsaved":["/Users/ian/src/neorex/README.md"], "provider":"rex","capabilities":["open_beside","close","find"],"unsupported":[], "kept":false,"log":"/tmp/neopane-501/work/log","terminals":["/dev/ttys004"]} {"name":"old","address":"…","pid":77,"build":"neopane 0.0.9","v":0,"same_version":false} {"name":"stuck","address":"…","error":"didn't answer in 2 s"} unsaved holds absolute paths, "" for an unnamed buffer; terminals the ptys of Neovim's running :terminal jobs. Paths that aren't UTF-8 have U+FFFD in place of what isn't. With none running, list --json prints {"daemons":[]}.
The JSON is stable: fields are only ever added, never removed, renamed, or changed in type or meaning. Read it ignoring fields you don't know, and take a missing field as unknown, as for a daemon of another version. provider check --json makes the same promise; its shape is in docs/config.md.
neopane -v (also --version, version) prints the build, then the protocols it speaks:
neopane 0.0.0 (a1b2c3d, 2026-11-09) attach protocol 1 pane provider protocols 1 The first line is the build string a helper's hello sends (docs/attach-protocol.md): -dirty follows the commit when tracked files differ from it, and a build from outside git has no parentheses.
What was asked for (help, version, list, status, provider check's report, provider show's Lua, provider types' lines, --detach's name) goes to stdout; everything else goes to stderr as one neopane: … line. A usage error is one line ending (see neopane --help). Output is the same to a terminal or a pipe, with no colour, but for the unsaved-file question, the key wait after a failed start, and provider check's pane title. A reader that closes the pipe early ends neopane quietly.
Everything after neopane's own options goes to Neovim as typed, read by Neovim's own rules, to refuse what can't work under a daemon, to find the file for the unsaved-file question, and to hold a running daemon to [+LINE] FILE. A relative path is taken from the directory neopane was started in, as with nvim. Anything Neovim itself rejects fails the start with Neovim's message.
These can't work under a daemon, so neopane refuses them with exit 2, saying why, and starts nothing:
Pane provider commands get the choosing attach's environment, less NEOPANE, every per-act NEOPANE_* variable and every NEOPANE_ENV_*, with their own variables of docs/capabilities.md set (Running a command). XDG_CONFIG_HOME, HOME and PATH are read too.
Each daemon keeps its files in $NEOPANE_TMPDIR/neopane- / /, /tmp standing in for an unset NEOPANE_TMPDIR (ADR 0004):
The directory neopane- must be yours, a real directory, and mode 0700, or neopane refuses to start and names NEOPANE_TMPDIR. The daemon holds a lock on its own directory while it runs, which is how it's known to be running. Its log stays after it ends, however it ends; the next daemon of that name keeps it as log.1, replacing an older one. An unnamed buffer, or one a plugin names oil://…, is logged but not listed in unsaved.
Your config lives in ~/.config/neopane/ (see Your own). Leftover neorex- directories from before the rename are left alone.
Neovim starts with g:neopane set to 1, before your Neovim config loads, so it can tell it's running under neopane:
{ 'sphamba/smear-cursor.nvim', cond = vim.g.neopane == nil }, Neovim's screen and the tabline Neovim's screen is the size of the current pane's layout area: its Rex window, or the pane alone with no live layout. Only its tabline, command line, messages and screen floats show, in the current pane. The tabline shows across the tabline panes along the top of each layout area, and is fitted to the current pane's; the top panes of another layout area show it from its start, cut at their width. When a foreign pane, such as a shell, takes part of the top, the tabline panes are narrower than Neovim's screen, and neopane fits the tabline to them: every 'tabline' that isn't empty ends at the right edge of the tabline panes (a fitted tabline), so the %=-aligned right end of one such as lualine's shows. A tabline too wide for them is cut as Neovim would cut it on a screen that wide. While a %! 'tabline' is drawn, vim.o.columns reads as the tabline width, so a tabline whose Lua lays out to it, such as bufferline's, fits its own widths too. Widths a tabline computes from 'columns' any other way don't fit by themselves, such as lualine's max_length or a Vimscript &columns; they can read g:neopane_tabline_width, set to the tabline width while it's narrower than the screen:
Windows drawn together in one pane are laid out by neopane, as Neovim lays out splits: 'splitbelow', 'splitright', :aboveleft, :belowright, :vertical and 'equalalways' count, and :resize, +, _ and | resize a window there. A window with another below it always has a statusline, whatever 'laststatus' says; at 'laststatus' 0, neopane draws it with the text and highlights Neovim would. Not yet: =, 'winfixheight', 'winfixwidth', 'winminheight', 'winminwidth', H, J, K, L, r, R and x, and dragging a separator or statusline. Never: :topleft and :botright, which split beside the origin window, and a split's count.
neopane help debug lists the debug commands, which run each layer on its own:
A requested pane's terminal runs the hidden neopane attach --address A --pane ID, which hands its terminal to the daemon (ADR 0013, docs/attach-protocol.md) and waits until the daemon ends the attach. The helper, not the daemon, puts its terminal in raw mode and back, so a daemon that crashes or is killed leaves every terminal usable: out of raw mode and the alternate screen, with a line naming the daemon's log. A pane id, such as 2-k3j9x2qpa8, is good for that one pane's terminal only.
To build and test, with just (just lists the recipes):
just build just run some/file.txt # target/debug/neopane, with Neovim arguments just test just golden # also the golden tests; downloads and builds Ghostty once just fmt just lint or with Cargo alone:
cargo build cargo test scripts/golden.sh --test golden Tests that need Neovim skip when nvim isn't installed. The golden tests check every frame neopane draws against Ghostty's terminal emulator, pinned to one commit; they need Zig 0.17, and are behind the golden feature, so a plain build never builds Ghostty. docs/latency.md is how to check a change for latency.
The demo videos are scripted: scripts/demo/record.sh tmux-core records scripts/demo/tmux-core.tape in a tmux of its own, editing a throwaway worktree, and writes the captioned cut to target/demo/tmux-core.mp4 and the social cut, set to music with Remotion, to target/demo/tmux-core.social.mp4. zellij-core and herdr-core are recorded the same way, with VHS; rex-core plays its tape in Rex.app through the rex CLI, and records its window on an AeroSpace workspace of its own, so it needs macOS and AeroSpace, and quits Rex.app while it runs. herdr-app-core plays its tape in a private Herdr app window, its own HERDR_APP_HOME, on a private hc core, its own HC_SESSION, typing through the core and acting through herdr-app, and records that window hidden on an AeroSpace workspace no monitor shows: it needs macOS, AeroSpace, Herdr.app and hc, and leaves your own Herdr app window and hc core alone.
neopane was called neorex until the rename (ADR 0005). The old names have no aliases: change them by hand.
A daemon started before the rename keeps running under its old name, and leftover neorex- directories are left alone: remove them once no old daemon runs. just install removes the old nrex symlink, and only warns about a neorex binary, which may be the original's.
Much of neopane will be split out into standalone crates:
neopane should then be easier to extend to other editors that provide similar processes for running external windows.
Bug reports, feature requests and pull requests are welcome. CONTRIBUTING.md covers setting up, the tests and the conventions; SECURITY.md how to report a vulnerability privately. Everyone taking part follows the Code of Conduct.
If neopane is useful to you, you can support its development through GitHub Sponsors.




