Skip to content

Feat: File filter#2

Merged
yuichkun merged 13 commits into
mainfrom
file-filter
Jan 25, 2026
Merged

Feat: File filter#2
yuichkun merged 13 commits into
mainfrom
file-filter

Conversation

@yuichkun

Copy link
Copy Markdown
Owner

No description provided.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Add file filtering UI component with include/exclude patterns and dim/hide modes. Integrates useFileFilter hook to filter and style nodes based on file patterns.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e00fdbff4e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread webview-ui/src/utils/filterNodes.ts Outdated
Comment on lines +88 to +92
// Extract pathname from file:// URI
let pathname: string;
try {
pathname = new URL(node.uri).pathname;
} catch {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Decode URI pathname before glob matching

filterNodes matches patterns against new URL(node.uri).pathname, but VS Code URIs are percent‑encoded (e.g., spaces become %20). That means common patterns users type based on readable paths (like **/My Project/** or a filename with spaces/Unicode) will never match and nodes will be incorrectly dimmed/hidden. Decoding the pathname (e.g., decodeURIComponent(url.pathname)) before picomatch would keep filters aligned with what users see.

Useful? React with 👍 / 👎.

Fixes issue where paths with spaces or Unicode characters (e.g., 'My Project',
'日本語') wouldn't match user-typed patterns because URIs are percent-encoded.
@yuichkun yuichkun merged commit e620128 into main Jan 25, 2026
2 checks passed
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