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

sometimes it still finds ignored files #68

Open
kschulz-samsung opened this issue May 27, 2024 · 3 comments
Open

sometimes it still finds ignored files #68

kschulz-samsung opened this issue May 27, 2024 · 3 comments

Comments

@kschulz-samsung
Copy link

I have installed this recently and it mostly works great. I have not changed the default config, but still I see files from .git folders from time to time:

image

Any idea why this happens?

@danielfalk
Copy link
Owner

One way it might happen is if those files have gotten in your history. The files come from 2 sources: the history and the filesystem via recursive scan. If they're not in your history (looks unlikely in this case), then it would be related to the patterns that are passed into ripgrep as command line arguments. Maybe there should be some way of turning on diagnostics to be able to see the resulting command, but putting in a temporary print() could do it.

@danielfalk
Copy link
Owner

oh, I think it might be your ignore_patterns config. There are a lot of default ignore patterns, which should prevent extraneous entries like this. If you're overriding this setting, then that might explain it.

Are you still seeing this issue? If so, can you see if using the default ignore patterns fixes it?

@Kazy
Copy link

Kazy commented Dec 2, 2024

I'm also experiencing this issue. One of my folder (.direnv with some Python venv in it) is shown even though the folder has always been git-ignored in the repository it lives in. After looking at the SQLite database, it indeed has entries for files in that folder.

I've tried to understand how it could happen and on a fresh database: went to the parent folder, opened smart-open which returned the .direnv files because it's not in the folder that's ignored, then moved to the child folder and opened smart-open again, and indeed the ignored files were there, even if I didn't opened them in the previous step.

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

No branches or pull requests

3 participants