Skip to content

Reduce flickering on typing by reusing unchanged matches#318

Open
jinliu wants to merge 1 commit into
anyrun-org:masterfrom
jinliu:fix/first-match-flickering
Open

Reduce flickering on typing by reusing unchanged matches#318
jinliu wants to merge 1 commit into
anyrun-org:masterfrom
jinliu:fix/first-match-flickering

Conversation

@jinliu

@jinliu jinliu commented Apr 30, 2026

Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings April 30, 2026 04:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to reduce UI flickering while typing by avoiding full teardown/rebuild of the match list when the beginning of the match results hasn’t changed.

Changes:

  • Adds prefix-comparison logic when updating PluginBox matches to reuse unchanged entries.
  • Truncates only the changed tail of the existing match list and appends new matches after the unchanged prefix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread anyrun/src/plugin_box.rs
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