Commit 3544c55
feat(ui): change ctrl+c to cancel operations, ctrl+q to quit
Changed keybinding behavior to match common terminal UX:
**ctrl+c**: Cancel ongoing LLM operations without quitting
- Cancels model pulls
- Cancels streaming responses
- Cancels query generation
- Does nothing if no operation is active (no longer quits)
**ctrl+q**: New hard quit keybinding
- Quits the application immediately
- Also callable from top-level (model.go) to cancel any LLM ops before exit
- Shown as "q / ctrl+q" in help screen since 'q' already quits from nav mode
This matches terminal conventions where ctrl+c interrupts the current task
but doesn't exit the program.
Updated:
- Top-level handler in model.go: ctrl+q quits, ctrl+c cancels ops
- Chat completer: ctrl+q quits instead of ctrl+c
- Chat main handler: ctrl+c only cancels, removed quit fallback
- Form help: ctrl+q instead of ctrl+c
- Help screen: "Cancel operation" instead of "Cancel stream"
- Nav mode help: "q / ctrl+q" instead of just "q"
Closes #170
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 8ae5da6 commit 3544c55
3 files changed
+13
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1076 | 1076 | | |
1077 | 1077 | | |
1078 | 1078 | | |
1079 | | - | |
| 1079 | + | |
1080 | 1080 | | |
1081 | 1081 | | |
1082 | 1082 | | |
| |||
1094 | 1094 | | |
1095 | 1095 | | |
1096 | 1096 | | |
1097 | | - | |
| 1097 | + | |
1098 | 1098 | | |
1099 | 1099 | | |
1100 | 1100 | | |
| |||
1112 | 1112 | | |
1113 | 1113 | | |
1114 | 1114 | | |
1115 | | - | |
1116 | | - | |
1117 | | - | |
| 1115 | + | |
| 1116 | + | |
1118 | 1117 | | |
1119 | 1118 | | |
1120 | 1119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
150 | 155 | | |
151 | 156 | | |
152 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| |||
776 | 776 | | |
777 | 777 | | |
778 | 778 | | |
779 | | - | |
| 779 | + | |
780 | 780 | | |
781 | 781 | | |
782 | 782 | | |
| |||
805 | 805 | | |
806 | 806 | | |
807 | 807 | | |
808 | | - | |
| 808 | + | |
809 | 809 | | |
810 | 810 | | |
811 | 811 | | |
| |||
0 commit comments