splits: panes side by side
On this page
lokyr/splits · bundled · source
A tab of several panes, side by side and one above another: the commands that split a pane, move the keyboard between panes, resize, zoom, equalize and swap them, move a pane out to a tab or a window of its own, and close it.
The panes
- Each pane is a card of rounded corners in a tab of more than one, the window's background between the cards;
look = "plain"shows them edge to edge, a line between two, as before. A tab of one pane, and a zoomed pane, fill the window either way. · Since 1.7 - A card's header shows its program's icon, its title in bold, the program's own title or else its name, and its folder after it, such as
~/…/lokyr. The card that has the keyboard has buttons at the header's right: Split Right, Split Down, Zoom, More and Close. More lists the pane's other actions: Split Left and Split Up, Move Pane to New Tab and to New Window, Float Pane, and Leave or Join Broadcast while the window broadcasts. A click on another card's header gives it the keyboard. · Since 1.7 - The program's icon is its mark:
rustofcargo,pythonofpython3anduv,nodejsofnode,gitofgitandlazygit,neovimofnvim,docker,remoteofsshandmosh,pulseofhtopandtop,bookoflessandman, and some fifty more; an AI agent's mark, whatever program runs it: Claude Code's,codex's of OpenAI, GitHub Copilot's, Google's ofgeminiand a pointer ofcursor-agent, a sparkle of the others; a terminal of a shell and of any other program. Your own go inicons, over Lokyr's:[plugins.splits.icons] lazydocker = "kubernetes". Floating panes show the same icons. · Since 1.7 - The dividers between panes move with a drag, the gap between two cards or the line between two plain panes; a double click shares the room half and half again.
- The pane that has the keyboard stands out: the others fade a little toward their background, as
dim-inactivesays. - A new pane starts its shell in the folder of the pane that it splits, as the shell tells it.
- A tab dragged onto a pane splits that pane, the tab's panes taking the half where it fell, as the
tabsplugin's drag does. - What you type can go to every pane of the tab or of the window at once, with Shell › Broadcast Input, as Windows and tabs describes. · Since 1.5
Commands
| Command | Menu | Default keys | What it does |
|---|---|---|---|
splits.split | Shell › Split › Split Right, Split Left, Split Down, Split Up | ⌘D, ⇧⌘D | Splits the pane, direction right, left, down or up: the new pane, on that side, takes the keyboard |
splits.focus | Shell › Pane › Select Pane Left, Select Pane Right, Select Pane Above, Select Pane Below | ⌥⌘←, ⌥⌘→, ⌥⌘↑, ⌥⌘↓ | Gives the keyboard to the pane beside, direction left, right, up or down |
splits.focus-next, splits.focus-prev | Shell › Pane › Select Next Pane, Select Previous Pane | ⌘], ⌘[ | Gives the keyboard to the tab's next or previous pane, around the ends |
splits.resize | ⌃⌘←, ⌃⌘→, ⌃⌘↑, ⌃⌘↓ | Moves a divider of the pane cells, 1 by default, towards direction | |
splits.zoom-toggle | Shell › Pane › Zoom Pane | ⇧⌘Return | Has the pane take the tab's whole room, or gives the others theirs back |
splits.equalize | Shell › Pane › Equalize Panes | Shares every split of the tab half and half again | |
splits.swap | Swaps the pane with the one beside it, direction left, right, up or down | ||
splits.move-to-tab | Shell › Pane › Move Pane to New Tab | Moves the pane out to a tab of its own | |
splits.move-to-window | Shell › Pane › Move Pane to New Window | Moves the pane out to a window of its own | |
splits.close | Shell › Pane › Close Pane | Closes the pane of a tab of more than one, asking first while a program other than the shell runs in it; ⌘W closes it too, as the tab's close does while the tab has splits |
The pane's context menu, in its Pane submenu, splits it right, left, down or up, moves it to a tab or a window of its own, and closes it; an item that would do nothing there is dimmed, as Close Pane in a tab of one pane.
The commands without keys are there for your own bindings:
[keys]
"cmd+alt+e" = "splits.equalize"
"cmd+alt+shift+left" = { command = "splits.swap", args = { direction = "left" } }
Configuration
Its keys go in [plugins.splits], each applied as you save the file:
| Key | Values | Default | What it does |
|---|---|---|---|
look | cards, plain | cards | How the panes of a tab of more than one show, and the floating panes: as cards, or edge to edge with a line between two · Since 1.7 |
icons | a table of programs' names and icons | none | The icons of programs of your own in the cards' headers, over Lokyr's, each one of Lokyr's icons · Since 1.7 |
dim-inactive | from 0 to 1 | 0.15 | How much the panes that have not the keyboard fade into their background; 0 leaves them as they are |
pane-titles | true, false | false | Whether each pane shows its title across its top, while look is plain |
focus-follows-mouse | true, false | false | Whether the keyboard goes to the pane that the pointer comes over, without a click |
[plugins.splits]
look = "plain"
dim-inactive = 0.3
pane-titles = true
Turning it off
[plugins.splits]
enabled = false
The splits' commands go, with their keys, and the panes no longer fade or show titles; the panes that a tab has stay, and a click still gives one the keyboard.
Permissions
It reads the tabs' layouts, and changes them, as the plugin API lets every plugin; its manifest asks to read the processes, process-read, for the panes' folders and programs in their titles and their icons, and the AI agents that run in them, and to write to the panes, pty-write, for a card's More menu, whose Leave and Join Broadcast change where the typed input goes.