Repository navigation
Filter row for large results tables and the Data Tables - #172
Merged
Merged
Conversation
A per-column filter strip in the table's own header (Ctrl+F or the header menu), for tables of more than 10 rows. Expressions: text, wildcards, quoted phrases, !, =, >, >=, <, <=, a..b ranges, blank/nonblank, space = AND, | or , = OR. Typing is debounced (150 ms); a pass hides rows with setRowHidden and copies no data. A 'Showing N of M - Clear' note shows while a filter is active. Results tables (via _make_table) and the analytic per-element table use the cell text and exact raw values. The Data Tables filter the model objects the rows were filled from, so hidden rows never build their cell widgets, and CSV export reads only the visible rows (and says so). An edited row that stops matching stays shown until the next time the user types.
This was referenced Nov 6, 2026
…nt, not mid-collection
…o the garbage collector; undo the scene-parenting experiment
This was referenced Nov 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #171. Stacked on #151 (lazy Data Tables cell widgets): merge #151 first.
What it adds
MIN_FILTER_ROWS); small tables get nothing.raptor/gui/table_filter.py): text (contains),Pump*/?wildcards,"quoted phrase",!not,=exact,>>=<<=!=,5..10,blank/nonblank; space = AND,|or,= OR. Numbers compare the cell's raw value when it has one, else the number in its text (commas, %, '>' censor mark, units ignored). A bad expression never raises: the box turns red, rows stay unfiltered.setRowHidden, copies no data: 30,000 rows filter in about 0.1 s. A 'Showing N of M / Clear' note appears while a filter is active.Where
_make_table: capacity, weak links, costs, importance) and the analytic per-element table.Tests: 54 expression tests, 15 for the bar, results hook and Data Tables.