Skip to main content

Module find

Module find 

Source
Expand description

Find in the table: / (or f) asks for a pattern, n and N move between the cells that hold it.

As the pattern is typed, the cells that match among the rows on hand light up and are counted (3 on screen); nothing is read for that. Ctrl+G keeps only the rows that match, as a filter the Sort & Filter sidebar lists.

The view is searched as it stands — query, filters, sort and the columns shown — and never changed: only the cursor moves. The search runs off the UI thread as a job, reading the view a window at a time the way pages are read, starting from the buffer the table already holds. It looks for the next match only: nothing counts every match, so a find near the cursor reads little, and the count of matches is known only as far as the finds so far have walked from the top.

Structs§

ActiveFind
The find in effect, and where it last landed.
Find
The find prompt, and the find in effect.
FindSpec
What a find looks for.
Found
The cell a find landed on.
LiveMatches
The cells a pattern being typed matches among the rows on hand. Worked out in memory as the pattern or the rows on hand change; never read.

Enums§

Direction
Which way a find goes.

Type Aliases§

MatchCells
The view rows a pattern being typed matches among the rows on hand, by column name: looked up by the table as it draws, without a name cloned per cell.