Editors
<prefix> + e opens the editor over the active pane. The
file browser and Git mode open files in the same editor.
Choose it with editor in config.toml.
editor |
Opens |
|---|---|
"native" |
btmux’s own editor, with language servers, Git signs, and an optional Vim mode. The default |
"neovim" |
A Neovim GUI drawn by btmux, with your config. Needs Neovim 0.12 or newer on the server’s PATH |
"vscode" |
VS Code in btmux, with its color scheme and font |
"pane" |
The terminal: the pane’s running Neovim, else $EDITOR in its shell |
With "pane", opening a file requires Neovim or the shell in the foreground.
Otherwise, btmux shows an error.
Over a pane
Section titled “Over a pane”Editors and the browser share these controls.
- They cover the active pane; other panes stay visible and usable.
- Zooming the pane (
<prefix> + z) makes them fill the window. - The same key, or Esc twice quickly, hides them. Pressed from another pane, the key moves them there.
- Clients share one Neovim, one VS Code, and one browser per server. Each pane can have its own native editor, with files shared across clients.
Capturing a pane
Section titled “Capturing a pane”<prefix> + [ (capture-pane) opens the pane’s screen and scrollback in a
temporary file using the configured editor. The pane’s program keeps running.
With editor = "pane" or a capture over the native editor’s 16 MiB limit,
$EDITOR (or vi) opens in a popup.
A capture is deleted when you close its tab in the native editor, when its popup closes, or when the server stops.
Opening files from a shell
Section titled “Opening files from a shell”btmux open-editor src/main.rs 42btmux open-editor --kind vscode README.mdbtmux open-editor [FILE] [LINE] follows the editor setting from a pane,
and --kind native|neovim|vscode|pane overrides it. Outside btmux it runs $EDITOR.
Using both
Section titled “Using both”The status bar shows a button for the configured editor.
Use editor-native, editor-neovim, or editor-vscode to toggle one from
the command palette or a [keys] binding.
Put nvim on the server’s PATH. See VS Code server options
for its executable locations.