Describe the Bug
I’m on version v1.0.0
but I noticed this behavior on earlier versions too.
I have a directory in my .gitignore
# .gitignore
.my-docs
I’d like to have cursor index these docs, so I added a global rule in my user settings to negate the .gitignore rule as I’ve seen described in the docs.
# settings.json
"cursor.general.globalCursorIgnoreList": [
...
"!.my-docs/"
],
I do not have a local .cursorignore
file in my project and I do not want to use a local .cursorignore
file in my project for implementation-specific reasons (this is meant to be a global rule we’re managing for all our company users).
When I do add a local .cursorignore
file with the negation rule, it succeeds in overriding the .gitignore and it does index the directory. But as stated before, I want the global cursor ignore to work.
Steps to Reproduce
A coworker said he is not encountering this issue and the global cursor ignore negation rule is working for him, so I’m not sure how to reproduce this except outside of my specific setup and with the scenario described above.
We are both on version v1.0.0
Expected Behavior
When a file or directory is in .gitignore
, and a negation rule is added to the global cursor ignore rules in the user’s settings.json for that file or directory, the file or directory should get indexed.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.0.0
VSCode Version: 1.96.2
Commit: 53b99ce608cba35127ae3a050c1738a959750860
Date: 2025-06-04T19:21:22.523Z (2 days ago)
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.0.0
Does this stop you from using Cursor
No - Cursor works, but with this issue