Repository navigation
feat: the filter works in the columns view - #260
demostenex wants to merge 1 commit into
Conversation
/ was discarded in the columns view, so a filter could only be typed in the list and the grid. ColumnPane already draws the active column through pane.shown and pane.shownTotal, so the gate in Focus.js was the only thing between / and a filtered column. The filter narrows the active column, the way it narrows the list. Enter hands the keyboard back with the filter standing, j and k walk the kept rows, the preview column follows the cursor, and Escape clears it. tests/js/focus.js now expects slash to open the filter there. The keys.toml and Pane.qml comments no longer say the filter is list only. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe ChangesView filtering
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Feature Suggested reviewers: Merge Risk: ⚪ Minimal · up to This change lets the filter open in columns view and narrows the active column, with the test and comments updated to match. No concrete risk was found in the supplied context, so it looks safe to merge. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 Biome (2.5.13)tests/js/focus.jsFile contains syntax errors that prevent linting: Line 1: Expected a statement but instead found '.'.; Line 1: Expected a semicolon or an implicit semicolon after a statement, but found none; Line 1: Expected a semicolon or an implicit semicolon after a statement, but found none; Line 2: Expected a semicolon or an implicit semicolon after a statement, but found none; Line 3: Expected a semicolon or an implicit semicolon after a statement, but found none; Line 4: Expected a semicolon or an implicit semicolon after a statement, but found none; Line 5: Expected a semicolon or an implicit semicolon after a statement, but found none; Line 6: Expected a semicolon or an implicit semicolon after a statement, but found none; Line 7: Expected a semicolon or an implicit semicolon after a statement, but found none ui/js/Focus.jsFile contains syntax errors that prevent linting: Line 1: Expected a statement but instead found '.pragma library Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
the "/" filter never opened in Columns view; it now does, reimplemented with credit to this PR (135674b, v0.3.10). Thanks @demostenex! https://github.com/thisisgm/flea/releases/tag/v0.3.10 |
What changes
/opens the filter in the columns view. It was discarded there, so a filter could only be typed in the list and the grid./narrows the active column, the way it narrows the list. Enter hands the keyboard back with the filter standing,jandkwalk the kept rows, the preview column follows the cursor, and Escape clears it with the cursor kept where it was./stays quiet while a search owns the header, and leaving the view still closes the filter.How
ui/js/Focus.js: thefilteraction no longer checksviewMode !== "columns".ui/ColumnPane.qmlneeded no change: the active column already takes its model frompane.shownTotaland its rows throughFilter.at(pane.shown, index).tests/js/focus.js: the case that expected slash to be discarded in the columns view now expectsfilter.keys.tomlandui/Pane.qml: two comments that said the filter was list only.The old
keys.tomlcomment gave the canvas as the reason for keeping it to the list. If the columns view is meant to stay without a filter on purpose, say so and I will close this.Tests
tests/js.sh: 10958 checks, 44 failed. All 44 are the themecolors.tomlreads (is there to read: got 0, expected 200,parses to a palette), which come from files not on this machine; none is in focus, filter or columns.tests/keymap-gen.sh: ok,ui/js/Keymap.jsmatcheskeys.toml.tools/flea-file-budget:ui/js/Focus.js,ui/Pane.qmlandtests/js/focus.jskeep their recorded line counts.cargo testandtests/ui.sh. The change touches no Rust, andomarchy-driveis not on this machine./,alpin a folder of 7 gave "2 of 7 shown" with the two right rows; Enter, thenjmoved the cursor to the second row and the preview followed; Escape restored all 7 rows.Summary by CodeRabbit
/to filter items in columns view. The filter applies to the active column, matching the behavior in list and grid views.