Skip to content

feat(ui): add mouse_capture config option - #247

Merged
gi-dellav merged 2 commits into
gi-dellav:mainfrom
wowi42:disable-mouse-capture-option
Aug 8, 2026
Merged

gi-dellav merged 2 commits into
gi-dellav:mainfrom
wowi42:disable-mouse-capture-option

Conversation

@wowi42

@wowi42 wowi42 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Adds a mouse_capture boolean config option (default true).

When set to false, zerostack no longer enables crossterm mouse capture, so the terminal emulator keeps control of mouse selection, copy, and paste. In-app mouse features (scroll, click-to-place-cursor, drag-to-select/copy) are disabled.

Changes:

  • Conditional mouse capture in TerminalGuard
  • Conditional disable/enable around external editor, lazygit, /init, and /tutor
  • InputEditor stores the flag for Ctrl+G external editor
  • Documentation in docs/CONFIG.md
  • Unit tests for default, explicit values, and TOML deserialization

Validation:

  • cargo fmt
  • cargo test (764 passed)
  • cargo install --path . --debug

wowi42 added 2 commits August 4, 2026 20:12
Adds a mouse_capture boolean config option (default true).
When set to false, zerostack no longer enables crossterm mouse
capture, letting the terminal emulator handle mouse selection,
copy, and paste. In-app mouse features (scroll, click-to-cursor,
drag-to-select/copy) are disabled in that mode.

- Conditional mouse capture in TerminalGuard
- Conditional disable/enable around external editor, lazygit, /init, /tutor
- Docs and tests
…eel scrolling

Adds Ctrl+Up/Ctrl+Down as keyboard line-scroll shortcuts and updates
/help and docs/CONFIG.md to explain that mouse-wheel scrolling depends
on mouse_capture being enabled.
@gi-dellav
gi-dellav merged commit 3de9273 into gi-dellav:main Aug 8, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants