+
Skip to content

Add dedicated Cursor.gitignore template for Cursor AI editor exclusions #4639

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

Merged
merged 2 commits into from
May 22, 2025

Conversation

Wuhall
Copy link
Contributor

@Wuhall Wuhall commented May 21, 2025

Description:

This PR introduces a standalone Cursor.gitignore template to centralize exclusion rules for Cursor, an AI-powered editor with cross-language adoption (beyond Python).

Why a Dedicated Template?

  1. Broader Scope Than Python
    • Unlike PR4633 (which focused on Python-specific ignores), this template covers all languages where Cursor is used (JavaScript, Go, Rust, etc.).

    • Cursor’s AI features (e.g., codebase indexing) require consistent ignore rules across ecosystems.

  2. Editor-Specific Security Needs
    .cursorignore often contains user/team-specific paths (e.g., local_dev/, *.env.local).

    .cursorindexingignore restricts AI analysis of sensitive directories (e.g., node_modules/, vendor/).

  3. Precedent for Editor-Specific Templates
    • Similar to Global/JetBrains.gitignore and Global/VisualStudioCode.gitignore, this follows GitHub’s pattern for editor-agnostic rules.

Key Differences from Previous PR

Feature Previous PR (#PR_NUMBER) This PR
Scope Python-only All languages
File Location Python.gitignore Global/Cursor.gitignore
Use Case Python project hygiene Cross-editor team collaboration

Documentation & Validation
• Official Cursor Docs: Ignore Files | Indexing Guide

• Screenshot: Default Cursor ignore behavior:

Example

Checklist
• [x] Verified no overlap with existing global templates.

• [x] Confirmed compliance with contribution guidelines.

• [ ] Awaiting CI validation.


@Wuhall Wuhall requested a review from a team as a code owner May 21, 2025 10:05
Copy link
Collaborator

@dooleydevin dooleydevin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one small change needed before this is ready to merge 😄

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

Successfully merging this pull request may close these issues.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载