Skip to content

feat: add suggested exclude-pattern picker with usage-based ordering #112

@filipchristiansen

Description

@filipchristiansen

A more user-friendly way to manage exclude patterns could be implemented, potentially with the following features:

  1. Dropdown/Checkbox Menu for Common Patterns:

    • Allow users to easily select common exclude patterns (e.g., *.csv, *.toml, /tests, *.log, etc.).
    • These patterns could be pre-populated based on common exclusions or usage statistics.
  2. Repo-Specific Suggestions:

    • After the user runs gitingest on a repository, analyze the file types and structures to suggest exclude patterns specific to the repo. For example:
      • Identify patterns that would significantly reduce the token count.
      • Highlight those patterns in the suggested list.
  3. Usage-Based Ordering:

    • Order suggested patterns based on global usage statistics (how frequently they are excluded by other users) or the impact they have on the token count for the specific repository being analyzed.

This feature would improve usability by streamlining the process of excluding unnecessary files and directories, helping users optimize their token budgets while interacting with gitingest.

Screenshot_2025-01-07_at_21 20 29

Metadata

Metadata

Assignees

No one assigned

    Labels

    suggestionNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions