Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Keyboard & Mouse

Sorrel uses phy’s TemplateGUI shortcuts, so phy muscle memory carries over. Press h (or ?, F1, or the ? button in the top bar) for this list as an overlay. The overlay is generated from the same keymap table the app dispatches from. The tables below describe the defaults; Help shows your active bindings. phy parity tracks what is still missing.

Letter keys below are unshifted unless Shift is explicitly shown. On macOS, use Cmd for the primary Ctrl shortcuts, except the physical Ctrl+Tab dataset-tab navigation noted below.

Configure shortcuts and settings

Open Settings from the launcher, dataset tab bar or top bar. Under Keyboard shortcuts, search an action, remove a binding with its × button, or choose Add shortcut and press the new chord. Multiple alternatives are supported. Reset restores one action; Restore all shortcut defaults restores every action. Conflicting shortcuts in overlapping scopes prevent saving. Waveforms and CCG shortcuts apply only while their pane is hovered.

Save settings applies changes immediately to every tab and pop-out and writes ~/.sorrel/settings.toml (%USERPROFILE%\.sorrel\settings.toml on Windows). This file also stores the theme and recent datasets. Set SORREL_CONFIG_DIR to use another settings directory. It is separate from the host registry/runtime directory (SORREL_USER_DIR). Recording-specific layout, selection and view state remain in <dataset>/.sorrel/ui.json.

You can also edit the TOML while Sorrel is closed:

version = 1

[appearance]
theme = "system" # system, dark or light

[keybindings]
"curation.split" = ["F8"]
"curation.merge" = ["G"]
"app.open_dataset" = ["Primary+O"]
"waveforms.mean" = [] # explicitly unbound

Missing action entries inherit their defaults; arrays replace all bindings for that action. Primary means Ctrl on Windows/Linux and Cmd on macOS; Ctrl means the physical Control key. Use named keys such as Plus, ArrowDown and PageUp. Settings lists the stable action IDs on hover. Invalid settings cause a visible warning and are never silently overwritten. Mouse/wheel gestures and native text-editing shortcuts are unchanged.

“Best” clusters are the ones picked in the cluster table; “similar” clusters are picked in the Similar pane or stepped through with Space. Views show the best clusters first, then the similar ones.

Curation

KeyAction
GMerge the selection into the first-selected cluster.
KSplit off the spikes inside the Features lasso.
LOpen the snippet bar with :l typed (set a label).
Alt+G / Alt+M / Alt+N / Alt+UMark the cluster-table selection good / MUA / noise / unsorted.
Ctrl+G / M / N / UMove the similar clusters.
Ctrl+Alt+G / M / N / UMove all selected clusters.
Ctrl+ZUndo.
Ctrl+Shift+Z / Ctrl+YRedo.
Ctrl+SSave curated state to disk (see Saving).
Shift+Ctrl+KSplit the selection back into its original templates.
VMerge mode: stage the selection, add similar candidates (Space, clicks), G merges all, V cancels.

A move is journaled as a single entry, so one undo reverts it. Afterwards the wizard advances as phy’s does. Moving the best clusters selects the next table row. Moving a similar cluster steps to the next similar one. G requires at least two selected clusters and combines their actual spike memberships into the first-selected cluster; it is not just a visual group. One Undo restores all of the merged memberships.

KeyAction
↓ / ↑Next / previous best cluster in table order (sort + filter respected).
Home / EndFirst / last best cluster.
Space / Shift+SpaceNext / previous similar cluster; noise and MUA are skipped.
Ctrl+SpaceSelect the first 15 similar clusters.
BackspaceUnselect the similar clusters.
Ctrl+Alt+SpaceReset the wizard to the first cluster.
Alt+← / Alt+→Pan the trace window back / forward by one window.
Alt+Home / Alt+EndJump the trace to the start / end of the recording.
Alt++ / Alt+-Narrow / widen the trace window.
Alt+PgDn / Alt+PgUpCentre the trace on the selection’s next / previous spike.
Alt+TGo to a time (opens :tg).
Alt+O / Alt+S / Alt+LTrace: channel 0 at the bottom / mark every cluster’s spikes / channel labels.
Ctrl+Alt+↑ / Ctrl+Alt+↓Trace gain up / down.

Views and snippets

KeyAction
CFeatures: fix the current channels, or follow the selection again.
A / Shift+AAmplitudes: next / previous type (template, feature, raw, template feature).
Ctrl+RTime axes use spike_reorder.npy (when present).
:Snippet bar. Enter runs the snippet, Esc closes it.
H / ? / F1Toggle the help overlay.
Ctrl+QQuit (asks first when there is unsaved curation).
Ctrl+O / Ctrl+WOpen a dataset / close the active dataset tab.
Ctrl+Tab / Ctrl+Shift+TabNext / previous dataset tab (physical Ctrl on macOS too).
Ctrl+CommaOpen Settings (Cmd+Comma on macOS).
Ctrl+Shift+MMaximize the pane under the pointer over the whole view area, or restore.
F11Full screen for the window the key is pressed in (main or a popped-out one).
EscClose a dialog, the snippet bar or the help, or cancel the lasso and any pending cut without changing the cluster; with nothing else to cancel, restore a maximized pane.

Snippets: :g merge, :k split, :c 3 7 10-12 select, :l name value custom label (:l group good moves the selection), :note text unit note (:note alone clears it), :tg 12.5 trace to 12.5 s, :ts 0.2 200 ms trace window, :max maximize or restore the pane under the pointer (Features if none yet), :pop move that pane to its own window.

Plain-key shortcuts never fire while a text field has focus. Ctrl chords, Esc and F1 always do.

Pane-local defaults

These shortcuts apply only while the pointer is over the pane and no text field has focus. They are configurable in Settings too.

PaneKeyAction
WaveformsW / Shift+WNext / previous waveform mode.
WaveformsM / O / Ctrl+LMean toggle / overlap / channel labels.
WaveformsCtrl+↑ / Ctrl+↓Increase / decrease amplitude scale.
WaveformsCtrl+→ / Ctrl+←Widen / narrow waveform boxes.
WaveformsShift+↑ / Shift+↓Spread / shrink the probe vertically.
WaveformsShift+→ / Shift+←Spread / shrink the probe horizontally.
WaveformsR / Shift+RReset scales.
CCGNToggle uniform normalization.

While hovering Waveforms, each M press switches between the mean alone and individual waveforms from every valid spike, with the same full-set mean overlaid. No click in the pane is needed. Loading counts distinguish available waveforms from the total cluster spike count; text fields and dialogs keep their keyboard input. An explicitly selected sample preview is separate; M always restores the all-spike source, even with older preferences that stored a 100-spike cap.

Undo moves to the previous edit and redo to the branch you visited last. An edit after an undo starts a new branch, and the old one stays in the History pane. The top bar’s Undo/Redo buttons name the command they will revert or re-apply.

After a merge the target cluster is selected; after a split both halves are. Closing the window with unsaved curation asks whether to save first.

Cluster table mouse

GestureAction
Click a rowReplace selection with this cluster.
Cmd/Ctrl-clickToggle this cluster in the selection.
Shift-clickSelect the range of visible rows from the anchor to here.
Click column headerSort by that column; click again to flip.

Selected rows carry a colour swatch; the same colour marks that cluster in every view (first selected = blue, second = orange, …).

Views mouse

WhereGestureAction
Tracedrag / wheelPan in time.
TraceCtrl-wheel / pinchZoom the window around the pointer (1 ms – 5 s).
RasterclickSeek the trace window to that time.
Rasterdrag / wheel / double-clickPan / zoom time and rows around the pointer / reset.
Amplitudes, Rate, Drift, RasterShift-drag along timeSet the time range (a band; spikes outside fade). Shift-click clears it (not in Raster, where it adds a cluster: use Esc or the chip).
Amplitudes, Spike datahover a point (6 px)Highlight that spike in every view: ring in the spike views, a time line in Raster, Rate, Drift and Trace.
Traceclick a spike tickPick that spike (4 px): Features rings it and the pick stays until the next click.
Ratedrag / wheel / double-clickPan / zoom in time (re-binned over what is visible) / reset; :frmin 10, :frmax 600 set the x range in seconds.
TemplatesCtrl-wheel / pinch / double-clickZoom every template box / reset; the wheel scrolls.
WaveformsShift-click a channel boxToggle that channel in the Features channel set.
ProbeShift-click a site; Ctrl-click / Ctrl-right-clickToggle that channel in the Features set; make it A / B.
ISIClick the shaded refractory band / a violation chipBrush both spikes in every pair closer than the fixed refractory window, for all shown clusters / that cluster. Esc clears.
WaveformsCtrl-click / Ctrl-right-click a channel boxMake that channel Features channel A / B (phy select_channel).
FeaturesCtrl-click / Ctrl-dragCtrl-click adds a lasso node in that subplot; Ctrl-drag draws one freehand (simplified to at most 64 nodes on release, replacing the old lasso); Ctrl-right-click or Esc clears; K splits the spikes inside.
FeaturesDrag / double-click / right-click on a lassoOn a closed lasso: drag a node to move it, double-click an edge to insert a node, right-click a node to delete it (never below three). A plain drag elsewhere pans the whole projection grid — squares, gaps and captions together — not the dots within one square.
Featuresk-means button / :kmLasso the smallest k-means part of the first selected cluster (exact members highlighted, a chip per part to switch); auto-run refits as the selection changes. K splits.
FeaturesAlt+click a spike / Shift+drag a time cellAlt+click on a spike (6 px) seeks the Trace to it; elsewhere it picks the amplitude feature. Shift+drag along a time cell sets the time range, Shift+click clears it.
Featureswheel / Ctrl-wheel / Alt-wheel / drag / double-clickZoom the whole 4×4 projection grid like one image around the pointer, scaling squares, gaps and captions together / scale PC features / marker size / pan that canvas / reset the zoom and pan so all 16 projections fit again. Plain wheel and drag do not change data ranges, the lasso, the spike brush or cluster data; the toolbar and alternatives strip stay fixed.
Features 3Ddrag / Shift-drag (or middle-drag) / wheel / double-clickOrbit / pan / zoom / reset the camera; click a triple in the AXES list (or the combo box) to change the axes; the pinned chip holds the focused 2D plot’s pair so only its third axis is chosen, × on it lists every triple. Inspection only: no lasso here, and drags with Ctrl or Alt held are ignored.
Similarclick a rowSelect the primary cluster together with that candidate.
SimilarCmd/Ctrl-click a rowAdd that candidate to the current selection.
Any tabdrag the tab titleMove the view to another group or split; × closes it.
Tab bar+Reopen a closed view in that group.

Journaling guarantee

Every label change, merge, split, undo/redo and History jump is written to the journal before the in-memory session changes. If Sorrel crashes between the journal write and the next event, the replay on next open recovers the exact same state.

Tab menu

Right-click any tab for Freeze on this selection (phy’s auto-update toggle: the pane keeps showing the clusters it had, marked 🔒) and Save screenshot (a PNG of the pane in <dataset>/.sorrel/screenshots/). Shift+wheel over Raster, Scatter or Templates cycles the colour scheme for unselected clusters (also :cf none|cluster|group|depth|fr). Drag pans, the wheel zooms and double-click resets the Amplitudes, Scatter, Tmpl features and Spike data plots.