Commit c633c9d
authored
fix(chat): Parse EDITOR env var to support arguments (#1209)
The /editor command now properly parses the EDITOR environment variable
to handle cases where it contains arguments (like 'code -w'). This fixes
issue #1208 where the command would fail when EDITOR contained spaces.
🤖 Assisted by [Amazon Q Developer](https://aws.amazon.com/q/developer)1 parent cc66436 commit c633c9d
File tree
4 files changed
+20
-6
lines changed- crates
- figterm
- src/pty
- q_cli/src/cli/chat
4 files changed
+20
-6
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
496 | | - | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
497 | 507 | | |
498 | 508 | | |
499 | 509 | | |
500 | 510 | | |
501 | 511 | | |
502 | 512 | | |
503 | | - | |
504 | | - | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
505 | 521 | | |
506 | 522 | | |
507 | 523 | | |
| |||
0 commit comments