File locations
Monocle loads config files in this order, with the project config taking precedence over the global one:- Global:
~/.config/monocle/config.json(or$XDG_CONFIG_HOME/monocle/config.json) - Project:
.monocle/config.jsonin your working directory
Example config
Settings
| Setting | Values | Default | Description |
|---|---|---|---|
layout | "auto", "side-by-side", "stacked" | "auto" | Pane arrangement (auto switches based on terminal width) |
diff_style | "unified", "split", "file" | "unified" | Diff display mode (file shows raw content) |
sidebar_style | "flat", "tree" | "flat" | File list display mode |
wrap | true, false | false | Word-wrap long lines in diffs |
tab_size | integer | 4 | Spaces per tab character |
context_lines | integer | 3 | Unchanged lines shown around diff hunks |
ignore_patterns | string array | [] | Glob patterns for files to exclude |
min_diff_width | integer | 80 | Minimum character width for the diff viewer in side-by-side layout |
mouse | true, false | true | Enable mouse interactions (click, scroll, drag) |
auto_focus_mode | true, false | false | Auto-enter focus mode (hide sidebar, enable wrap) when reviewing plans |
keybindings | object | {} | Custom key overrides (see Keybindings) |
review_format.include_snippets | true, false | true | Include code snippets in formatted reviews |
review_format.max_snippet_lines | integer | 10 | Truncate snippets longer than this |
review_format.include_summary | true, false | true | Include comment count summary in formatted reviews |
Toggle keybindings (
T, t, w, f) change settings for the current session only. Edit the config file to persist your preferences.