TerminalSearchState
data class TerminalSearchState @JvmOverloads constructor(val query: String, val resultCount: Int, val activeResultIndex: Int, val isSearching: Boolean = false, val failure: Throwable? = null)
Public snapshot of terminal search results.
Properties
Link copied to clipboard
zero-based active match, or -1 when no match is active or when a capped search has no known global match index.
Link copied to clipboard
Whether resultCount is a lower bound rather than an exact completed total.
Link copied to clipboard
whether a background pass is pending or running.
Link copied to clipboard
matches found so far for a new query, or matches from the last completed pass during a content refresh. While searching, the count is provisional and may lag output; a new query starts with zero matches. A capped pass reports 1,001: 1,000 collected matches plus one overflow witness. Hosts should display 1,000+ when isCountLimited is true.