Lokyr
Documentation

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

Commands

CommandMenuDefault keysWhat it does
splits.splitShell › Split › Split Right, Split Left, Split Down, Split Up⌘D, ⇧⌘DSplits the pane, direction right, left, down or up: the new pane, on that side, takes the keyboard
splits.focusShell › 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-prevShell › 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-toggleShell › Pane › Zoom Pane⇧⌘ReturnHas the pane take the tab's whole room, or gives the others theirs back
splits.equalizeShell › Pane › Equalize PanesShares every split of the tab half and half again
splits.swapSwaps the pane with the one beside it, direction left, right, up or down
splits.move-to-tabShell › Pane › Move Pane to New TabMoves the pane out to a tab of its own
splits.move-to-windowShell › Pane › Move Pane to New WindowMoves the pane out to a window of its own
splits.closeShell › Pane › Close PaneCloses 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:

KeyValuesDefaultWhat it does
lookcards, plaincardsHow 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
iconsa table of programs' names and iconsnoneThe icons of programs of your own in the cards' headers, over Lokyr's, each one of Lokyr's icons · Since 1.7
dim-inactivefrom 0 to 10.15How much the panes that have not the keyboard fade into their background; 0 leaves them as they are
pane-titlestrue, falsefalseWhether each pane shows its title across its top, while look is plain
focus-follows-mousetrue, falsefalseWhether 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.