Skip to content

[BUG] Search Cannot Filter by File Type or Path Pattern #220

@olddev94

Description

@olddev94

Project

vgrep

Description

The search functionality only supports filtering by path prefix. Users cannot:

  • Filter by file extension (e.g., only .rs files)
  • Use glob patterns (e.g., **/test*.py)
  • Exclude paths (e.g., exclude node_modules)
  • Filter by file type category (e.g., "code", "config", "docs")

Error Message

None - missing feature.

Debug Logs

System Information

- Bounty Version: 0.1.0
- OS: Ubuntu 24.04 LTS
- Rust: 1.75+

Screenshots

No response

Steps to Reproduce

# Want to search only in Rust files - not possible
vgrep "error handling" --ext rs      # No --ext option
vgrep "error handling" --glob "*.rs" # No --glob option
vgrep "error handling" --exclude "test*" # No --exclude option

Expected Behavior

  1. Filter by file extension: --ext rs,py,js
  2. Include patterns: --include "*.rs"
  3. Exclude patterns: --exclude "test/**,vendor/**"
  4. File type categories: --type code (predefined groups)

Actual Behavior

  1. Only path prefix filtering
  2. No extension filtering
  3. No pattern matching
  4. No exclusions

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingvalidValid issuevgrep

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions