Repository navigation
Add F2 to toggle mouse capture for terminal-native copy - #116
Merged
Merged
Conversation
Disabling mouse capture already required editing [tui] mouse_capture in config and restarting. Add a live F2 toggle that flips the runtime flag and sends Enable/DisableMouseCapture immediately, so users can drop into native terminal text selection/copy without leaving Forge, then flip back on for the TUI's own mouse handling.
This was referenced Aug 1, 2026
mohitranka
added a commit
that referenced
this pull request
Aug 1, 2026
Revert the F2 binding, SemanticCommand::ToggleMouseCapture, and terminal::set_mouse_capture added in #116.
github-actions Bot
pushed a commit
that referenced
this pull request
Aug 1, 2026
Revert the F2 binding, SemanticCommand::ToggleMouseCapture, and terminal::set_mouse_capture added in #116.
mohitranka
added a commit
that referenced
this pull request
Aug 21, 2026
Disabling mouse capture already required editing [tui] mouse_capture in config and restarting. Add a live F2 toggle that flips the runtime flag and sends Enable/DisableMouseCapture immediately, so users can drop into native terminal text selection/copy without leaving Forge, then flip back on for the TUI's own mouse handling.
mohitranka
added a commit
that referenced
this pull request
Aug 21, 2026
Revert the F2 binding, SemanticCommand::ToggleMouseCapture, and terminal::set_mouse_capture added in #116.
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
Disabling mouse capture already required editing [tui] mouse_capture in config and restarting. Add a live F2 toggle that flips the runtime flag and sends Enable/DisableMouseCapture immediately, so users can drop into native terminal text selection/copy without leaving Forge, then flip back on for the TUI's own mouse handling.
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
Revert the F2 binding, SemanticCommand::ToggleMouseCapture, and terminal::set_mouse_capture added in #116.
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
Disabling mouse capture already required editing [tui] mouse_capture in config and restarting. Add a live F2 toggle that flips the runtime flag and sends Enable/DisableMouseCapture immediately, so users can drop into native terminal text selection/copy without leaving Forge, then flip back on for the TUI's own mouse handling.
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
Revert the F2 binding, SemanticCommand::ToggleMouseCapture, and terminal::set_mouse_capture added in #116.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
[tui] mouse_captureconfig setting to disableEnableMouseCaptureentirely (restoring native terminal text selection everywhere), but flipping it required editing the config file and restarting.SemanticCommand::ToggleMouseCapture) that flipsruntime.mouse_capturelive and immediately sendsEnable/DisableMouseCaptureto the terminal via a newterminal::set_mouse_capture()helper, with a toast confirming the new state.mouse.rs) and the terminal emulator receives raw mouse events again, so click-drag selection and the terminal's native copy shortcut work as normal. F2 again re-enables Forge's interactive mouse features.?help as "F2 Toggle mouse capture (select/copy in terminal)".Test plan
cargo build -p forge-tuicargo test -p forge-tui --lib— 671 passed, 0 failedcargo clippy -p forge-tui --all-targets— cleancargo fmt --check— clean