Skip to content

[BUG] File Extensions Hardcoded, Not Configurable #160

@olddev94

Description

@olddev94

Project

vgrep

Description

The list of file extensions to index is hardcoded in src/core/indexer.rs. Users cannot configure which file types to index without modifying the source code. This is problematic for:

  • Projects using non-standard extensions
  • Users wanting to exclude certain file types
  • Custom languages or formats

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

  1. Create a project with .custom or .xyz files
  2. Run vgrep index
  3. Files are not indexed (silently skipped)
  4. No way to configure this via CLI or config

Expected Behavior

  1. Default extensions in config file
  2. CLI to add/remove extensions:
    vgrep config extensions add .custom
    vgrep config extensions remove .txt
  3. .vgrepignore file for exclusions
  4. Support glob patterns like *.test.js

Actual Behavior

  1. Extensions are hardcoded
  2. Cannot be changed without recompiling
  3. No ignore file support
  4. List is duplicated in 3 places (DRY violation)

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