Keys
Every shortcut is in keys.json. Bind a key to a command, to text typed into the terminal, or give it back to the program.
On upgrade, an untouched keys file from an earlier release gets the current shortcuts. Any edit, even whitespace, keeps the entire file as yours; new default shortcuts must then be added by hand.
{
"global": { "ctrl-shift-t": "tab.new", "ctrl-shift-o": "pane.split:right", "alt-1": "space.select:1" },
"terminal": { "ctrl-shift-c": "terminal.copy", "ctrl-left": "send:\u001bb", "ctrl-1": "terminal" },
"layout:terminals": { "ctrl-shift-pagedown": "space.next", "ctrl-shift-pageup": "space.prev" },
"mod:editor": { "ctrl-s": "editor.save" }
}
- Sections:
global,layout:<name>(whilelayouts/<name>.jsonshows),terminal(a terminal has focus),mod:<name>. The more specific section wins:layout:terminalsoverglobal,terminalover both. - An action is a command (
name, orname:value: the value fills the command's first argument),send:<text>(types into the terminal),<mod>.<command>(delivered to that mod'snextCommand()), orterminal(the program gets the key). - Named, typed command arguments use an object instead of a string:
"ctrl-shift-r": {"command": "layout.resize", "args": {"id": "sidebar", "px": 240}}.commandnames an app command;argsis an object (optional, defaults to{}). It can pass several arguments, numbers, booleans, arrays or nested objects. String actions keep their literal first-argument shorthand, including numeric indexes:space.new:{work}names a space{work}, andspace.new:{}names it{}. Invalid binding objects or rejected arguments show an error toast when pressed; the key does not go to the terminal program. - Plain ctrl+letters go to the program unless bound. Programs rely on ctrl+c, ctrl+d, ctrl+l, ctrl+r, ctrl+w, ctrl+a, ctrl+e, ctrl+u, ctrl+k, ctrl+z and ctrl+[ (Escape); ctrl+alt is AltGr on Windows; option+digits and letters type characters on many Mac keyboards (
[,@). Don't pick these on your own. If the person asks for one, bind it and tell them what it takes from typing. - Windows AltGr and dead-key compositions type text in terminals. macOS dead keys compose accents through native text input; Option keeps its keyboard-layout characters rather than acting as Alt.
- On macOS, shifted punctuation shortcuts accept both spellings from the current layout:
cmd-shift-]andcmd-}match the same US-layout keypress. Existingkeys.jsonfiles don't need to change. - The macOS menu bar (File, Edit, View, Go, Window, Help) runs the same commands and shows the keys bound to them in
global, so a rebound key shows there too. Edit's items press their key where the focus is. - Terminal keys honor the program's negotiated Kitty mode, including on Windows.
- Windows terminal Escape stays separate from the following key.
- Search:
ctrl-shift-f(Cmd-F on macOS) opens a find bar inside the focused terminal; Enter/Shift-Enter moves through matches and Escape closes it while the find field has focus. Clicking the terminal puts typing, including Escape, back in the program; the bar and its matches stay. Each terminal keeps its own query, and reopening selects it so typing replaces it. Search covers the screen and scrollback without replacing text selection.
Your agents read these same words: Woolshed writes this guide to ~/.config/woolshed/AGENTS.md on every start. In it, “you” is the agent and “the person” is you.