Split

Two panes with a draggable, keyboard-accessible divider (window splitter pattern); one pane has the size (the start one, or the end one with fixed="end": a docked inspector), which can be remembered.

Source on GitHub

An editor: a sidebar, and a terminal docked under the code (nested splits)
ray-remote — main.ray
main.rayserver.ray
1import net/http;
2
3fn main() -> int {
4    print("hello from raylang");
5    0
6}

Terminal

$ ray run
hello from raylang
✓ exited with 0 in 41 ms
main Ln 4, Col 5 Drag a divider, or focus it and use the arrows raylang
Mail: three panes, each divider with its own limits
  • Ana TorresRelease notes for 0.22The knob is in, with a log scale for the EQ…
  • CIrelease.yml passedcheck ✓ · npm ✓ · three packages published
  • Luis PérezMixer layoutCould the meter scale go next to the fader?
  • ray-indexelements@0.22.0Index updated from the maintainer's machine.

Release notes for 0.22

Ana Torres · today, 9:41

The knob is in, with a log scale for the EQ frequency and a bipolar arc for pan. Drag the dividers: the folders stop between 130 and 240 px, the list between 200 and 420.

A docked inspector: fixed="end" keeps its width while the canvas stretches
poster.design
Collapsed until needed: the results open when the query runs
medications.sql Run
1select name, dose, next_at
2  from alarms
3 where active = 1
4 order by next_at;

Results

namedosenext_at
Ibuprofen400 mg14:00
Vitamin D1000 IU20:00
Omeprazole20 mg08:00
Code

API

For AI agents: this API as Markdown, or every component in llms-full.txt.

<ray-split> · RaySplit

Divider keys: arrows move it (Shift: faster), Home/End go to min/max, Enter or double click collapse the sized pane. position, min, max and collapsed are the sized pane's: the start pane, or the end pane with fixed="end".

PropertyAttributeTypeDefaultDescription
orientationorientation reflectshorizontal | verticalhorizontalhorizontal: side by side; vertical: stacked.
fixedfixed reflectsstart | endstartThe pane that has the size and collapses; the other takes the rest. end: a panel docked on the end side (an inspector) that keeps its width while the start pane stretches.
positionpositionstring50%Initial size of the sized pane: px (280) or any CSS length (30%, 20rem).
minminnumber0Minimum size of the sized pane in px.
maxmaxnumberMaximum size of the sized pane in px.
collapsedcollapsed reflectsbooleanThe sized pane is hidden.
disableddisabled reflectsbooleanThe divider cannot be moved.
autosaveautosavestringA key: the size and the collapsed state are saved in localStorage and restored (a saved state wins over the collapsed attribute).
EventDescription
ray-resizeAfter a drag, a key or a collapse.
SlotDescription
startThe first pane: sized (a sidebar), or the one that takes the rest with fixed="end".
endThe second pane: the one that takes the rest, or sized with fixed="end" (an inspector).
PartDescription
dividerThe separator.
startThe start pane.
endThe end pane.

Texts

What it writes itself, in English; setStrings() translates them (Getting started: Languages).

KeyEnglish
split.resizeResize