Skip to content

Feature: Opt in debounced search queries#203

Merged
unsecretised merged 7 commits intoRustCastLabs:masterfrom
jiasunzhu613:file-search-debounce
Mar 21, 2026
Merged

Feature: Opt in debounced search queries#203
unsecretised merged 7 commits intoRustCastLabs:masterfrom
jiasunzhu613:file-search-debounce

Conversation

@jiasunzhu613
Copy link
Copy Markdown
Contributor

@jiasunzhu613 jiasunzhu613 commented Mar 21, 2026

This PR introduces a debounce struct to allow for search queries for different Page enums to opt into debounced execution using DebouncePolicy.

The debouncer will delay search queries upon user input for a Page enum if the Page enum has opted into a non-null debounce duration.

Goal of introducing debounce is to avoid making unnecessary search queries for more expensive searches (such as file search and emoji search).

Copy link
Copy Markdown
Collaborator

@unsecretised unsecretised left a comment

Choose a reason for hiding this comment

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

Just needs to be configurable

Copy link
Copy Markdown
Collaborator

@unsecretised unsecretised left a comment

Choose a reason for hiding this comment

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

LGTM

@unsecretised unsecretised merged commit 9de6dbf into RustCastLabs:master Mar 21, 2026
2 checks passed
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