mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-07-09 17:19:02 +00:00
docs(cli): document tmux scroll workaround (#5248)
This commit is contained in:
parent
49ff31b16d
commit
905041f940
2 changed files with 11 additions and 0 deletions
|
|
@ -83,6 +83,12 @@ Active only when `ui.useTerminalBuffer` is enabled (Settings → UI → Virtuali
|
|||
|
||||
When `ui.useTerminalBuffer` is on, the terminal forwards mouse events to qwen-code so the wheel can drive the in-app viewport. As a side effect, **native click-and-drag text selection is consumed by the program** — hold `Shift` (or `Option` on macOS Terminal / iTerm) while dragging to bypass mouse capture and select text the usual way.
|
||||
|
||||
### tmux trackpad scrolling
|
||||
|
||||
Inside tmux, some terminals translate trackpad or wheel gestures into plain `Up Arrow` and `Down Arrow` sequences before qwen-code sees them. Those bytes are identical to real arrow-key presses, so qwen-code cannot tell whether you meant to scroll the viewport or navigate prompt history.
|
||||
|
||||
If trackpad scrolling changes the prompt history in tmux, enable `ui.useTerminalBuffer`; then use `Shift+Up` / `Shift+Down`, or the mouse wheel when tmux forwards wheel events to the app. If you prefer host scrollback, adjust your tmux mouse bindings for wheel events.
|
||||
|
||||
## IDE Integration
|
||||
|
||||
| Shortcut | Description |
|
||||
|
|
|
|||
|
|
@ -85,6 +85,11 @@ This guide provides solutions to common issues and debugging tips, including top
|
|||
- **Cause:** The `DEBUG` and `DEBUG_MODE` variables are automatically excluded from project `.env` files to prevent interference with the CLI behavior.
|
||||
- **Solution:** Use a `.qwen/.env` file instead, or configure the `advanced.excludedEnvVars` setting in your `settings.json` to exclude fewer variables.
|
||||
|
||||
- **Trackpad scrolling in tmux changes prompt history instead of scrolling the conversation**
|
||||
- **Issue:** In a tmux session, trackpad or wheel scrolling may cycle through previous prompts, similar to pressing `Up Arrow` or `Down Arrow`.
|
||||
- **Cause:** tmux can translate wheel gestures into plain arrow-key sequences. Those sequences are indistinguishable from real arrow-key presses by the time qwen-code receives them.
|
||||
- **Solution:** Enable `ui.useTerminalBuffer`; then use `Shift+Up` / `Shift+Down`, or the mouse wheel when tmux forwards wheel events to the app. If you prefer host scrollback, adjust your tmux mouse bindings for wheel events.
|
||||
|
||||
## IDE Companion not connecting
|
||||
|
||||
- Ensure VS Code has a single workspace folder open.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue