Theo-brainUnofficial. Not affiliated with Theo or t3.gg.
Sign inYou

T3 Code guide

Customize keybindings

Appearance and shortcuts

Settings → Keybindings on web and desktop lets you customize shortcuts and lists available command IDs and defaults. Keybindings are stored in ~/.t3/userdata/keybindings.json on the environment's machine.

T3 Code docs: keybindings

What it’s for

Free conflicting shortcuts, assign keys to unbound commands such as thread.stop, or write conditional rules with when expressions.

T3 Code docs: keybindings

When to use it

Use this when a custom desktop shortcut takes the same keys, or when a default clashes in a browser. For example, Cmd+W (Ctrl+W on Windows/Linux) closes the browser tab, so rebind rightPanel.close and terminal.close to an available shortcut such as alt+w.

T3 Code docs: keybindings

How to use it

  1. Or edit keybindings.json as an array of rules with key, command, and optional when, such as mod+shift+d or ctrl+l.

    T3 Code docs: keybindings

  2. Combine context keys like terminalFocus with !, &&, and ||; the last matching rule wins, so put specific rules after general ones.

    T3 Code docs: keybindings

  3. Keep !terminalFocus when remapping defaults so they do not intercept terminal input.

    T3 Code docs: keybindings

What’s changed

2 earlier changes

Unofficial notes. Not affiliated with Theo or t3.gg.