Hi, I have the same issue. I’m currently typing in Cursor in an Untitled file, and Tab keeps on trying to autocomplete my text.
Here’s the scenarios I want to prevent:
- opening up a quick Untitled file, adding a secret key (without saving), and Cursor sending that to context
- opening up an .env file (like the example above), and even though it’s .cursorignored, sending it to context (including sensitive data)
- writing sensitive notes in a text file that I don’t want to be shared with AI.
Here’s the behavior I would like to see:
- .cursorignore should not index any files in it
- .cursorignore should block files from being used in context, including and ESPECIALLY open files, like the .env file example above. This applies to Chat, Cursor Tab, and inline suggestions.
- It should be possible to get a concrete list of files covered by .cursorignore, so you can be sure that you don’t have a typo in .cursorignore.
- There needs to be a way to block Cursor from sending ‘Untitled’ files to context.
- Cursor default should to be block .env, .log, .txt etc. This should be overridable of course.
- There should be a clear indicator in the UI that this file is or is not available to be put in context (in the status bar, not in the Chat window). VSCode does this with Copilot.
- Ideally the above rules can be one-time overridden in the UI, at the user’s request.
The setting ‘cursor.chat.defaultNoContext’ is too blunt of an instrument. I want the open file to be sent as context, most of the time. I don’t want sensitive information to be shared with the AI.
The above issues are preventing me from switching fully to Cursor for all my development tasks (and I’d like to! )