Reference
Commands
Every command, its default keys on a Mac and on Windows and Linux, and when it is refused.
Every command has a stable id. The palette lists them all (greyed while refused); the keyboard runs the one a binding names; runCommand(jali, id) runs one from code. Rebind or unbind any of them with createJali({ keyboard: { keymap } }):
import { createJali } from "jali-layout";createJali({ panes, layout, keyboard: { keymap: { "pane.close": "Mod+K Mod+X", "pane.split.down": null } } });Mod is ⌘ on a Mac and Ctrl on Windows and Linux. A key written after a space is a second step: for ⌘K ⌘M, hold ⌘, press K, then M, keeping ⌘ held. ⌘K on its own opens the palette, with the palette() feature.
When a command is refused, its key is still taken. If the refusal has a reason, it is announced in the live region; "silent" below means it is not. While the palette, Settings or the chooser is open, only the palette's key works.
The titles below are for an instance with no curated page. With a curated page, "page" becomes the page's name; "Open …" uses createJali({ name }), and without a name the command reads "Leave" and the page's name.
| Command | Mac | Windows, Linux | Refused when |
|---|---|---|---|
| Palette | |||
palette.toggleOpen or close the command palette, and start a two-step chord | ⌘K | Ctrl+K | Never. Works with a dialog open too. |
| Focus | |||
pane.focus.nextFocus next pane | F6 | F6 | Never. Visits every pane on screen in reading order, then the shelf (when shown) and any element marked data-pane-region, then wraps. |
pane.focus.previousFocus previous pane | ⇧F6 | Shift+F6 | Never. The same cycle backwards. |
pane.focus.leftFocus pane left | ⌘K⌘← | Ctrl+KCtrl+Left | Silent when no pane is focused. Does nothing when no pane lies to that side. |
pane.focus.rightFocus pane right | ⌘K⌘→ | Ctrl+KCtrl+Right | Silent when no pane is focused. Does nothing when no pane lies to that side. |
pane.focus.upFocus pane up | ⌘K⌘↑ | Ctrl+KCtrl+Up | Silent when no pane is focused. Does nothing when no pane lies to that side. |
pane.focus.downFocus pane down | ⌘K⌘↓ | Ctrl+KCtrl+Down | Silent when no pane is focused. Does nothing when no pane lies to that side. |
pane.focus.1Focus pane 1 | none | none | Never refused. Does nothing when there are fewer panes on screen. |
pane.focus.2Focus pane 2 | none | none | Never refused. Does nothing when there are fewer panes on screen. |
pane.focus.3Focus pane 3 | none | none | Never refused. Does nothing when there are fewer panes on screen. |
pane.focus.4Focus pane 4 | none | none | Never refused. Does nothing when there are fewer panes on screen. |
pane.focus.5Focus pane 5 | none | none | Never refused. Does nothing when there are fewer panes on screen. |
pane.focus.6Focus pane 6 | none | none | Never refused. Does nothing when there are fewer panes on screen. |
pane.focus.7Focus pane 7 | none | none | Never refused. Does nothing when there are fewer panes on screen. |
pane.focus.8Focus pane 8 | none | none | Never refused. Does nothing when there are fewer panes on screen. |
pane.focus.9Focus pane 9 | none | none | Never refused. Does nothing when there are fewer panes on screen. |
| Pane | |||
pane.zoomMaximise or restore pane | ⇧⌘↵or ⌘K⌘M | Ctrl+Shift+Enteror Ctrl+KCtrl+M | In a curated page in Single, with "Single shows one view: choose it from the tabs…". Silent when no pane is focused, or when only one pane is open and nothing is maximised. |
pane.fullscreenFull screen pane, or exit full screen | ⌘K⌘F | Ctrl+KCtrl+F | On a curated page in Single view. Puts the focused pane on the whole screen, or takes it off. |
pane.pop_outPop out pane | none | none | Only with the popOut() feature (jali-layout/pop-out). Silent when no pane is focused, or the browser can't pop out (Document Picture-in-Picture: Chrome and Edge on desktop). When the focused pane doesn't allow it, says so. Opens it in a floating window that stays on top. |
pane.tuckTuck pane into its neighbour | ⌘K⌘[ | Ctrl+KCtrl+[ | In Single, as for maximise. With no pane focused or recently focused: "No pane focused". A pane in a tab group, already tucked, or a tuck's home: "… is already a tab of …". Not on screen: "… is not on screen". The only pane open or on screen, or no neighbour to tuck into: "… can't be tucked". |
pane.putBackPut back tucked pane | ⌘K⌘] | Ctrl+KCtrl+] | "Nothing is tucked" when no pane is tucked. |
shelf.revealShow a pane from the shelf | none | none | Silent when no pane is behind a tab (tucked, folded or an ordinary tab). |
pane.resize_modeResize mode (arrows, then Esc) | ⌘K⌘R | Ctrl+KCtrl+R | Silent when no pane is focused. When the pane has no divider, the action says "Nothing to resize: this pane has no divider". |
pane.closeClose pane | ⌘K⌘⌫ | Ctrl+KCtrl+Backspace | Silent when no pane is focused. With only one pane open: "The last pane stays open"; in a curated page's Single view: "Single shows one view: choose it from the tabs…". In Split view a view is never closed: it goes back to the page tabs, refused with "… is the only view on screen" for the last one. |
pane.close_othersClose other panes | none | none | Silent when no pane is focused. With no other pane it may close: "There are no other panes to close". In a curated page it means Back to the page, refused with "Nothing opened beyond the page" when nothing was opened. |
pane.undo_closeUndo last close or tuck | ⌘K⌘Z | Ctrl+KCtrl+Z | "Nothing to restore" when the undo stack is empty. Undoes the last close, close others or tuck. |
pane.split.rightSplit right (new pane) | ⌘\ | Ctrl+\ | Silent when no pane is focused, or there is no launcher. Where the pane doesn't allow `open`: "Panes can't be opened from … here". |
pane.split.downSplit down (new pane) | ⌘K⌘\ | Ctrl+KCtrl+\ | Silent when no pane is focused, or there is no launcher. Where the pane doesn't allow `open`: "Panes can't be opened from … here". |
pane.split.autoSplit auto (new pane, by shape) | none | none | Silent when no pane is focused, or there is no launcher. Where the pane doesn't allow `open`: "Panes can't be opened from … here". |
pane.renameRename pane | F2 | F2 | Only with the rename() feature (jali-layout/rename). Silent unless its `can` allows the focused pane. Opens the rename field on its tab or title. |
| Move | |||
pane.move.leftMove pane left | ⌘K⇧⌘← | Ctrl+KCtrl+Shift+Left | Silent when no pane is focused. With only one pane, or no pane to that side: "… can't move left". |
pane.move.rightMove pane right | ⌘K⇧⌘→ | Ctrl+KCtrl+Shift+Right | Silent when no pane is focused. With only one pane, or no pane to that side: "… can't move right". |
pane.move.upMove pane up | ⌘K⇧⌘↑ | Ctrl+KCtrl+Shift+Up | Silent when no pane is focused. With only one pane, or no pane to that side: "… can't move up". |
pane.move.downMove pane down | ⌘K⇧⌘↓ | Ctrl+KCtrl+Shift+Down | Silent when no pane is focused. With only one pane, or no pane to that side: "… can't move down". |
pane.move.outMove pane out of the row | none | none | Silent unless the focused pane is in a row that scrolls sideways (`row({ scroll: "x" }, …)`). Takes it out beside the row, on the side it is nearer on screen: "… moved out of the row". |
pane.swapSwap with next pane | none | none | Silent when no pane is focused or only one pane is open. |
| Tabs | |||
pane.mergeAdd to tabs of… | ⌘K⌘G | Ctrl+KCtrl+G | Only with the chooser() feature (jali-layout/chooser). Silent when no pane is focused, or there is no other pane or stack on screen to join. Opens the "Add to tabs of…" chooser. |
pane.unmergeMove out of tabs | ⌘K⇧⌘G | Ctrl+KCtrl+Shift+G | Silent unless the focused pane is in a tab group made by the person (not one the layout folded). |
tab.move.leftMove tab left | ⌘K⇧PageUp | Ctrl+KShift+PageUp | Silent unless the focused pane is a tab in a group made by the person or the app. At the start of the strip: "… is already the first tab". |
tab.move.rightMove tab right | ⌘K⇧PageDown | Ctrl+KShift+PageDown | Silent unless the focused pane is a tab in a group made by the person or the app. At the end of the strip: "… is already the last tab". |
stack.new-tabNew tab here | none | none | Silent when no pane is focused, or there is no launcher. Where the pane doesn't allow `open`: "Panes can't be opened from … here". |
| Layout | |||
layout.preset.<id>Layout: Orders | none | none | Never. One command per preset, titled "Layout: <label>". |
layout.resetReset layout | none | none | Silent without presets. Rebuilds the preset last chosen. |
layout.autoArrange panes automatically | none | none | On a curated page, on a phone (one pane at a time), or with one pane. Arranges every pane from the room and the kinds' sizes; Back undoes it. |
layout.copy_linkCopy link to this layout | none | none | Never. Copies store.href() and says "Link copied", or "Couldn't copy the link" when the clipboard refuses; says nothing where there is no clipboard API. |
page.backBack to page (close opened panes) | none | none | Silent unless a curated page is open. With no panes opened from links: "Nothing opened beyond the page". |
page.resetReset layout to its design | none | none | Silent unless a curated page is open in Split view. |
page.singleSingle view: one view at a time | none | none | Silent unless a curated page is open in Split view. |
page.splitSplit view: views side by side | none | none | Silent unless a curated page is open in Single view. |
page.openOpen page | none | none | Silent while the page is open, or when there is no curated page. |
page.leaveOpen Notes | none | none | Silent unless a curated page is open, and in a page-only app (no presets). |
| Peek | |||
peek.closeClose peek | none | none | Silent when no peek is open. |
peek.open_besideOpen peek beside | none | none | Silent when no peek is open. Where the pane the peek came from doesn't allow `open`: "Panes can't be opened from … here". In a curated page's Single view: "Single shows one view: choose it from the tabs…". |
| Settings | |||
settings.openOpen settings | none | none | Only with the settings() feature (jali-layout/settings). Never refused there. |
settings.centre_drop.toggleSwitch centre drop (swap ↔ tab) | none | none | Never. |
Keys that are not commands
Link to this section: Keys that are not commands- Esc, after the focused content has had it: closes the peek, else leaves maximise.
- Resize mode (
pane.resize_mode): the arrows move the divider nearest the pane on that side, Shift for bigger steps; Esc or Enter leaves. - In content marked
data-pane-keys="content"(an editor), the instance takes only F6 and Shift+F6, so focus can always leave. - Single character keys, ⌘Z or Ctrl+Z, Enter, Space and the first Esc belong to the focused content. A binding of a single character key with no Mod, Ctrl or Alt is refused when the keymap is made.