Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Add an "ignore_list" and/or "ignore_path" for @codebase #1469

Open
Selora opened this issue Mar 2, 2025 · 1 comment
Open

feature: Add an "ignore_list" and/or "ignore_path" for @codebase #1469

Selora opened this issue Mar 2, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@Selora
Copy link

Selora commented Mar 2, 2025

Feature request

If possible, when performing a query with @codebase, add a way to ignore some files besides the .gitignore files:

  • Add path-based ignore list
  • Add file-based ignore list
  • Allow the file or path to use wildcards/globs and/or regexes

I see that according to:

function M.parse_gitignore(gitignore_path)

anything in .gitignore or not version-controlled might already be ignored.

Another level of explicit granularity would be welcomed.

Motivation

Currently, any files part of my source tree that contains sensitive information might get pushed to whatever models I'm using with Avante.nvim

Other

No response

@Selora Selora added the enhancement New feature or request label Mar 2, 2025
@eyalk11
Copy link

eyalk11 commented Mar 4, 2025

Hmm, I tell you what I do.
I have a function that fills quickfix with all paths of certain extension '*.py' for example that are on git. Then I use @quickfix .
I actually have mappings that takes either all files as same extesnion as current file or all git files and add them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants