Skip to content

Constrain text selection to split pane#278

Merged
edwin-zvs merged 1 commit into
mainfrom
tui-split-text-selection
May 30, 2026
Merged

Constrain text selection to split pane#278
edwin-zvs merged 1 commit into
mainfrom
tui-split-text-selection

Conversation

@edwin-zvs

Copy link
Copy Markdown
Contributor

Summary

  • make mouse drag text selection use the hovered split pane's inner bounds
  • avoid selecting across sibling split panes when multiple main windows are visible
  • keep the original whole-view fallback for non-split/no-window geometry cases

Tests

  • cargo test -p agentd-cli selection_bounds_use_split_window_inner_area
  • cargo test -p agentd-cli selection_bounds_use_view_inner_area
  • cargo test -p agentd-cli find_text_ranges_respects_selection_bounds
  • cargo check -p agentd-cli
  • cargo build
  • git diff --check

Binaries

Built in this worktree under /Users/moon/agentd/.claude/worktrees/tui-split-text-selection/target/debug/.
Relevant binary for this PR: agent (crates/cli).

@edwin-zvs
edwin-zvs merged commit 31773a5 into main May 30, 2026
1 check passed
@edwin-zvs
edwin-zvs deleted the tui-split-text-selection branch May 30, 2026 21:07
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.

1 participant