Skip to content

feat: the filter works in the columns view - #260

Closed
demostenex wants to merge 1 commit into
thisisgm:mainfrom
demostenex:columns-view-filter
Closed

demostenex wants to merge 1 commit into
thisisgm:mainfrom
demostenex:columns-view-filter

Conversation

@demostenex

@demostenex demostenex commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • Columns view: / 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 with the cursor kept where it was.
  • Unchanged: / stays quiet while a search owns the header, and leaving the view still closes the filter.

How

  • ui/js/Focus.js: the filter action no longer checks viewMode !== "columns".
  • ui/ColumnPane.qml needed no change: the active column already takes its model from pane.shownTotal and its rows through Filter.at(pane.shown, index).
  • tests/js/focus.js: the case that expected slash to be discarded in the columns view now expects filter.
  • keys.toml and ui/Pane.qml: two comments that said the filter was list only.

The old keys.toml comment 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 theme colors.toml reads (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.js matches keys.toml.
  • tools/flea-file-budget: ui/js/Focus.js, ui/Pane.qml and tests/js/focus.js keep their recorded line counts.
  • Not run: cargo test and tests/ui.sh. The change touches no Rust, and omarchy-drive is not on this machine.
  • Tested by hand at the real window on Artix/X11/i3 (Flea 0.3.8): Ctrl+2, /, alp in a folder of 7 gave "2 of 7 shown" with the two right rows; Enter, then j moved the cursor to the second row and the preview followed; Escape restored all 7 rows.

Summary by CodeRabbit

  • New Features
    • Press / to filter items in columns view. The filter applies to the active column, matching the behavior in list and grid views.

/ 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]>
@coderabbitai

coderabbitai Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 51d3ab77-c0bb-44bc-bc1e-b7d3b51db07a
📥 Commits

Reviewing files that changed from the base of the PR and between abb536e and 5577155.

📒 Files selected for processing (4)
  • keys.toml
  • tests/js/focus.js
  • ui/Pane.qml
  • ui/js/Focus.js

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.


📝 Walkthrough

Walkthrough

The / binding now resolves to filter in columns view when search mode is empty. The test expectation and comments were updated to describe filtering across views.

Changes

View filtering

Layer / File(s) Summary
Enable and verify columns filtering
ui/js/Focus.js, tests/js/focus.js, keys.toml, ui/Pane.qml
lookup no longer blocks the filter action in columns view when search mode is empty. The test expects / to resolve to filter, and comments describe filtering across views.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Feature

Suggested reviewers: thisisgm

Merge Risk: ⚪ Minimal · up to 55771

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)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning 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… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: filtering now works in the columns view.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

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.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

🔧 Biome (2.5.13)
tests/js/focus.js

File 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.js

File contains syntax errors that prevent linting: Line 1: Expected a statement but instead found '.pragma library
.'.; Line 2: 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; Line 8: Expected a semicolon or an implicit semicolon after a statement, but found none; Line 9: Expected a semicolon or an implicit semicolon after a statement, but found none; Line 10: Expected a semicolon or an implicit semicolon after a statement, but found none; Line 11: Expected a semicolon or an implicit semicolon after a statement, but found none; Line 12: Expected a semicolon or an implicit semicolon after a statement, but found none; Line 13: Expected a semicolon or an implicit semicolon after a statement, but found none; Line 14: Expected a semicolon or an implicit semicolon after a statement, but found none; Line 15: Expected a semicolon or an implicit semicolon after a statement, but found none; Line 16: Expected a semicolon or an implicit semicolon after a statement, but found none; Line 17: Expected a semicolon or an implicit semicolon after a statement, but found none; Line 18: Expected a semicolon or an implicit semicolon after a statement, but found none; Line 19: Expected a semicolon or an implicit semicolon after a statement, but found none; Line 20: Expected a semicolon or an implicit semicolon after a statement, but found none; Line 21: Expected a semicolon or an implicit semicolon after a statement, but found none


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@thisisgm

Copy link
Copy Markdown
Owner

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

@thisisgm thisisgm closed this Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants