Skip to content

rust-explorer: resting the pointer on a row no longer selects it (#230) - #247

Closed
cute-johnny wants to merge 1 commit into
Lemxy:mainfrom
cute-johnny:rust-explorer-hover-select
Closed

cute-johnny wants to merge 1 commit into
Lemxy:mainfrom
cute-johnny:rust-explorer-hover-select

Conversation

@cute-johnny

Copy link
Copy Markdown
Contributor

Fixes #230.

The hover preview asks for WM_MOUSEHOVER on the file list and passed it on to the list view. Once the list has been clicked, the list view selects the row under the pointer on that message, so every row the pointer rested on for about 0.4 s became the selection, for files and folders alike. The message is the preview's own request, so preview.rs now stops it there. The preview itself works as before.

Testing

  • Built locally with the x86_64-pc-windows-gnu toolchain (CI builds MSVC): cargo build --release with no warnings, cargo test --release in plugins/rust-explorer: 39 passed.
  • Before and after on a real desktop, with a real click and the real pointer: click row 1, then rest the pointer on rows 3, 5, 7 and 9. v0.6.0: the selection follows the pointer (3, 5, 7, 9). This branch: it stays on row 1.

🤖 Generated with Claude Code

…xy#230)

The hover preview asks for WM_MOUSEHOVER on the list and passed it on to
the list view, which selects the row under the pointer on that message once
the list has been clicked: after one click, every row the pointer rested on
became the selection. The message is the preview's own request, so it now
stops there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Lemxy

Lemxy commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Thanks @cute-johnny! This is already in main as 147b4c7 (squashed, with you as co-author) and shipped in v0.7.0, so I am closing the PR.

@Lemxy Lemxy closed this Nov 30, 2026
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.

[Feature Request] Separate hover highlight from selection

2 participants