Keyboard shortcuts

Every Corral shortcut, grouped by where you use it. ctrl+b space shows the same list, searchable and with your own keys if you changed any.

How ctrl+b shortcuts work

The shortcuts that work in any pane go through herdr, so they start with its prefix, ctrl+b: press it, let go, then press the next key. They only do something when you use them. If you changed herdr's prefix, Corral's shortcuts use yours.

The palette

ctrl+b space, from any pane, opens Corral's palette: every shortcut and action in one list, grouped by where it works (layouts, any pane, the script editor, the R console, the variables pane, tables and Mirador). Type a few letters to narrow it down, and press Enter to run an action.

Using it

KeyAction
TypeSearch names and keys at once: plot, theme, python, ctrl+r. Accents don't matter. The counter says how many entries match.
↑ ↓, PgUp PgDn, Home EndMove through the list (the mouse wheel too)
EnterRun the selected entry when it's an action: a ↵ next to it says so. The other entries are keys that work in their own place (the editor, a table), listed so you can find them.
BackspaceDelete a letter of the search
EscClear the search; with nothing typed, close the palette

The list is read from your configuration every time it opens, so it shows your own keys after you change them, and actions that have no key yet, like the themes or the language, are one search away. It follows Corral's language too (see Language).

The same list is in the editor (Ctrl+P, then "Corral: keyboard shortcuts") and in any herdr terminal with corral keys. Mirador has its own short list of keys behind ?.

In any pane (herdr)

ShortcutAction
ctrl+b spaceThe palette of Corral's shortcuts and actions
ctrl+b aLayout focused on the agent: Claude on the left, the script over the console on the right
ctrl+b shift+aLayout focused on the code: the script on the left, Claude over the console on the right
ctrl+b shift+cClose Corral: closes the script, the console and the variables, and leaves Claude as a normal pane
ctrl+b tExpand the script or the console (the pane you are in; Claude or the console in the layout focused on the code); again, both
ctrl+b yThe console switches from R to Python, or from Python to R (Python starts the first time)
ctrl+b enterSend the selection or the clipboard to the console in view (R or Python)
ctrl+b fSee the latest plot in Mirador
ctrl+b dSee the variables over the terminal
ctrl+b mUse this pane as the console (R or IPython, by what runs in it) and switch Corral on in it
ctrl+b shift+mOpen Mirador
ctrl+b ?All of herdr's own shortcuts (panes, tabs, workspaces)

The palette also has actions with no key: add the script editor over the console, switch to the Dark 2026 theme, and go back to herdr's theme.

Script editor

The editor, Fresh, uses VS Code's shortcuts. Corral adds the ones below. Some terminals drop keys on their way through herdr (see below), so each action has a key that always arrives and, under "Also", the key you may know from other IDEs, for terminals that send it.

ShortcutAlsoAction
Ctrl+RCtrl+Enter, Alt+EnterRun the selection or, without one, the whole statement under the cursor (including |> or + chains over several lines), and move to the next one
F5Ctrl+Shift+EnterRun the whole file (source(echo = TRUE) in R, %run -i in Python)
Ctrl+LAlt+-Insert <-
Ctrl+UCtrl+Shift+MInsert |>
Ctrl+/Ctrl+Shift+CComment or uncomment
Ctrl+SpaceCompletion (it also appears on its own while you type)
Ctrl+SSave and format (Air in R, Ruff in Python); in the draft, it asks where to save it
Ctrl+PThe editor's command palette (all its actions)
Ctrl+FFind in the file
Ctrl+ZUndo
Ctrl+QClose the editor (the draft is discarded)

Ctrl+L and Ctrl+U do nothing in a .py file.

R console (Ark)

These are the keys of Corral's console for Ark, the default R console. Plain R and IPython keep their own line editing.

ShortcutAction
EnterRun, if the expression is complete; if not, a new indented line
Alt+EnterRun even if something is still open
↑ ↓History (with something typed, only the entries that start the same)
TabComplete names, arguments and columns
Ctrl+CInterrupt what is running, or clear what you typed
Ctrl+DClose the console (on an empty line)
Ctrl+LClear the screen
Ctrl+A, Ctrl+EGo to the start or the end of the line
Ctrl+K, Ctrl+U, Ctrl+WDelete to the end of the line, to its start, or the previous word

Variables pane

ShortcutAction
← →, Tab, 1–5Change tab: Data, Plots, Values, Functions, Other. A click works too.
↑ ↓, PgUp PgDnMove
EnterOpen: a table in the viewer, a plot in Mirador, any other value with str()
mOpen a table in Mirador, in your browser
/Search (the arrows choose among the results)
qClose the window (ctrl+b d)

Tables

The table viewer that View() opens.

ShortcutAction
↑ ↓, PgUp PgDn, g GMove through the rows (the mouse wheel too)
← →, 0 $Move through the columns; with the mouse, the horizontal wheel, a sideways swipe on the trackpad, or Shift and the wheel
s (or a click on the header)Sort by the column: ascending, descending, unsorted
/Search a text in every column; / and an empty Enter clear the search
fFilter with a condition, in R or in SQL
=Keep only the rows with the value of the selected cell
xRemove every filter and the search
EnterSee the whole row
iSummary of each column
mOpen the table in Mirador, in your browser; the viewer stays open
qClose

Mirador

ShortcutAction
← →Previous or next plot
cCopy the plot as a PNG image
In a table, the same keys as the terminal's table viewer:
↑ ↓, PgUp PgDn, g GMove through the rows
← →, 0 $Move through the columns
s (or a click on the header)Sort by the column: ascending, descending, unsorted
/Search a text in every column
fFilter with a condition, in R or in SQL
=Keep only the rows with the value of the selected cell
xRemove every filter and the search
Enter (or a double click)See the whole row
iSummary of each column
?See these shortcuts

Plots inside herdr

On terminals that draw images, ctrl+b f shows plots inside herdr instead (see Plots and Mirador). That viewer has three keys: ← → go through the history, o opens Mirador in the browser, and q closes it.

Change a shortcut

$ corral keys --list
$ corral keys --change herdr:toggle shift+e
$ corral keys --change editor:corral_run_line ctrl+e

corral keys opens the palette. --list prints it, with the ID of each shortcut, and --json gives the same list to agents. --change ID KEY gives an action a new key:

It refuses keys herdr already uses (ctrl+b ? lists them) and keys another shortcut has, unless you add --force, which takes the key from the other shortcut. Claude can read and change your shortcuts if you ask it.

Terminals that drop keys

From Warp, through herdr, only Ctrl plus a letter and the function keys reach the editor intact: Ctrl+Enter arrives as Enter, and shortcuts with Ctrl+Shift or Alt are cut. That is why Corral's main keys are Ctrl+R, F5, Ctrl+L and Ctrl+U.