You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aider/website/docs/config/tui.md
+42-4Lines changed: 42 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ tui: true
25
25
26
26
### Complete Configuration Example
27
27
28
-
Complete configuration example in YAML configuration file (`.aider.conf.yml` or `~/.aider.conf.yml`). The base theme is pretty nice but if you want different colors, do you thing:
28
+
Complete configuration example in YAML configuration file (`.aider.conf.yml` or `~/.aider.conf.yml`). The base theme is pretty nice but if you want different colors and key bindings, do you thing:
29
29
30
30
```yaml
31
31
tui: true
@@ -41,15 +41,53 @@ tui-config:
41
41
error: "#ff3333"
42
42
surface: "transparent"
43
43
panel: "transparent"
44
-
dark: true
45
-
variables:
46
-
input-cursor-foreground: "#00ff87"
44
+
input-cursor-foreground: "#00ff87"
47
45
other:
48
46
dark: true
49
47
input-cursor-text-style: "underline"
48
+
key_bindings:
49
+
newline: "enter"
50
+
submit: "shift+enter"
51
+
stop: "escape"
52
+
cycle_forward: "tab"
53
+
cycle_backward: "shift+tab"
54
+
focus: "ctrl+f"
55
+
cancel: "ctrl+c"
56
+
clear: "ctrl+l"
57
+
quit: "ctrl+q"
50
58
51
59
```
52
60
61
+
### Key Command Configuration
62
+
63
+
The TUI provides customizable key bindings for all major actions. The default key bindings are:
64
+
65
+
| Action | Default Key | Description |
66
+
|--------|-------------|-------------|
67
+
| New Line | `enter` (multiline mode) / `shift+enter` (single-line mode) | Insert a new line in the input area |
68
+
| Submit | `shift+enter` (multiline mode) / `enter` (single-line mode) | Submit the current input |
69
+
| Cancel | `ctrl+c` | Stop and stash current input prompt |
70
+
| Stop | `escape` | Interrupt the current LLM response or task |
0 commit comments