Settings and keys
Red has no settings screen. It has two files you edit, and a few flags.
The two files
settings.toml holds Red's settings, and keys.toml holds the key bindings you change. Neither exists until you want it: the commands Open settings and Open key bindings make the file with every setting or binding in it, commented out at its default with a line on what it does. Uncomment a line to change it.
Flags and environment variables
red [PATH] | Open the project in PATH, or in the current folder. A file opens in the repository it belongs to. |
|---|---|
--look ember|paper|ink | Choose a look. Without it, Red wears ember when your system is dark and paper when it is light. |
RED_TSRS | The tsrs program to run for TypeScript and JavaScript. |
RED_RUST_ANALYZER | The rust-analyzer to run for Rust. off runs none. |
RED_NO_PICTURES=1 | Don't tell Claude how to draw diagrams and sketches. |
RED_LOCALE | The language, instead of the system's. Red is written in English and it is the only language that has been checked. |
Red keeps threads, drafts and each project's window in one SQLite database, red.db. It is in $XDG_DATA_HOME/red, or ~/.local/share/red without it, and in ~/Library/Application Support/red on a Mac.
red ~/code/project --look ink
Default keys
On a Mac the terminal's copy and paste are ⌘ C and ⌘ V. The README has the other differences.
| Ctrl N | A new thread |
|---|---|
| Ctrl Shift N | A new thread in a worktree of its own, on a red/ branch |
| Ctrl L | Put the keys in the prompt. Enter sends, Shift Enter adds a line, Esc stops the agent |
| Ctrl Shift D | Dictate into the prompt with Hex |
| Ctrl Shift G | The last turn as one diff, or the editor again. Tab switches to what changed since the last commit |
| Ctrl \ | In the diff, split or unified |
| Ctrl P | Open a file by name. :120 goes to line 120 |
|---|---|
| Ctrl Shift P | Run a command by name |
| Ctrl S, Ctrl W | Save, close the tab |
| Ctrl F, Ctrl H, F3 | Find, replace, next match |
| Ctrl D | Select the word, then add its next match as another selection |
| Shift Alt Up/Down | Add a caret above or below |
| Ctrl / | Comment or uncomment the lines |
| Alt Z | Wrap long lines or not |
| Ctrl Shift B, Ctrl Alt B | Show or hide the threads and files, and the code |
| Ctrl Space, Ctrl Shift Space | Completions, what the call takes |
|---|---|
| Ctrl K | What is at the caret |
| Ctrl . | Fixes and refactors at the caret |
| F2 | Rename, across the project |
| F12, Ctrl F12, Shift F12 | Go to the definition, the type's definition, list the references |
| Alt Left/Right | Back and forward through jumps |
| F8, Shift F8 | Next and previous problem in the file |
| Ctrl Shift M | Every problem the servers know, by file |
| Shift Alt F | Format the file |
| Ctrl ` | The terminal of the project, or of the shown thread's worktree. From a terminal, back to the file |
|---|---|
| Ctrl Shift ` | Another terminal |
| Ctrl Shift C, Ctrl Shift V | Copy, paste |
| Ctrl F, Ctrl Up/Down | Find in the terminal and its scrollback, the previous and next prompt |
| Ctrl click | Open a file:line:col in the editor, or a link in your browser |