Expand description
Helper that owns the debounce/cancellation logic for rp_search
operations.
This module manages the orchestration of ripgrep searches, implementing debounce and cancellation logic to ensure responsive and efficient searches.
It works as follows:
- First query starts a debounce timer.
- While the timer is pending, the latest query from the user is stored.
- When the timer fires, it is cleared, and a search is done for the most recent query.
- If there is an in-flight search that is not a prefix of the latest thing the user typed, it is cancelled.
Structsยง
- Grep
Search Input - Input parameters for ripgrep search
- Grep
Search Manager - State machine for grep_search orchestration.
- Grep
Search Result - Result of a ripgrep search