Skip to content

feat: filter files by path and tighten the file rows - #80

Merged
bencode merged 1 commit into
mainfrom
feat/file-filter
Oct 3, 2026
Merged

bencode merged 1 commit into
mainfrom
feat/file-filter

Conversation

@bencode

@bencode bencode commented Oct 3, 2026

Copy link
Copy Markdown
Owner

A filter box under the Files heading narrows both trees to files whose path holds every word typed, ignoring case: pi readme finds knowledge/ai-agent-systems/pi/README.md.

  • While filtering, folders holding a match are open. Folding one is kept apart from the folders opened by hand, so clearing the filter leaves the tree as it was.
  • Enter opens the first match in tree order. Escape clears the box. When nothing matches, the panel says so.
  • The box keeps what is typed and hands it to the panel in a transition. A key press redraws only the box, and drawing a long list gives way to the next key.
  • File rows drop from about 32px to 26px.

Checked:

  • pnpm check, including a new integration test.
  • In a browser against brain2 (1,893 files): typing e draws 2,148 rows with no task over 50 ms. Going on to a filter with no match takes one 55 ms commit while those rows are removed.

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.

1 participant