core-agent-ide/codex-rs/tui/src
Michael Bolin 7ca84087e6
feat: make it possible to toggle mouse mode in the Rust TUI (#971)
I did a bit of research to understand why I could not use my mouse to
drag to select text to copy to the clipboard in iTerm.

Apparently https://github.com/openai/codex/pull/641 to enable mousewheel
scrolling broke this functionality. It seems that, unless we put in a
bit of effort, we can have drag-to-select or scrolling, but not both.
Though if you know the trick to hold down `Option` will dragging with
the mouse in iTerm, you can probably get by with this. (I did not know
about this option prior to researching this issue.)

Nevertheless, users may still prefer to disable mouse capture
altogether, so this PR introduces:

* the ability to set `tui.disable_mouse_capture = true` in `config.toml`
to disable mouse capture
* a new command, `/toggle-mouse-mode` to toggle mouse capture
2025-05-16 16:16:50 -07:00
..
bottom_pane feat: make it possible to toggle mouse mode in the Rust TUI (#971) 2025-05-16 16:16:50 -07:00
app.rs feat: make it possible to toggle mouse mode in the Rust TUI (#971) 2025-05-16 16:16:50 -07:00
app_event.rs feat: add support for commands in the Rust TUI (#935) 2025-05-14 12:55:49 -07:00
app_event_sender.rs chore: introduce AppEventSender to help fix clippy warnings and update to Rust 1.87 (#948) 2025-05-15 14:50:30 -07:00
chatwidget.rs feat: add support for file_opener option in Rust, similiar to #911 (#957) 2025-05-16 11:33:08 -07:00
citation_regex.rs feat: add support for file_opener option in Rust, similiar to #911 (#957) 2025-05-16 11:33:08 -07:00
cli.rs feat: introduce --profile for Rust CLI (#921) 2025-05-13 16:52:52 -07:00
conversation_history_widget.rs feat: add support for file_opener option in Rust, similiar to #911 (#957) 2025-05-16 11:33:08 -07:00
exec_command.rs feat: initial import of Rust implementation of Codex CLI in codex-rs/ (#629) 2025-04-24 13:31:40 -07:00
git_warning_screen.rs feat: initial import of Rust implementation of Codex CLI in codex-rs/ (#629) 2025-04-24 13:31:40 -07:00
history_cell.rs feat: add support for file_opener option in Rust, similiar to #911 (#957) 2025-05-16 11:33:08 -07:00
lib.rs feat: make it possible to toggle mouse mode in the Rust TUI (#971) 2025-05-16 16:16:50 -07:00
log_layer.rs Update cargo to 2024 edition (#842) 2025-05-07 08:37:48 -07:00
main.rs Update cargo to 2024 edition (#842) 2025-05-07 08:37:48 -07:00
markdown.rs fix: use text other than 'TODO' as test example (#969) 2025-05-16 14:51:03 -07:00
mouse_capture.rs feat: make it possible to toggle mouse mode in the Rust TUI (#971) 2025-05-16 16:16:50 -07:00
scroll_event_helper.rs chore: introduce AppEventSender to help fix clippy warnings and update to Rust 1.87 (#948) 2025-05-15 14:50:30 -07:00
slash_command.rs feat: make it possible to toggle mouse mode in the Rust TUI (#971) 2025-05-16 16:16:50 -07:00
status_indicator_widget.rs chore: introduce AppEventSender to help fix clippy warnings and update to Rust 1.87 (#948) 2025-05-15 14:50:30 -07:00
tui.rs feat: make it possible to toggle mouse mode in the Rust TUI (#971) 2025-05-16 16:16:50 -07:00
user_approval_widget.rs chore: introduce AppEventSender to help fix clippy warnings and update to Rust 1.87 (#948) 2025-05-15 14:50:30 -07:00