feat: 添加 .cursorignore 文件以优化 Cursor 文件监听,减少索引文件数量
This commit is contained in:
+3
-3
@@ -1,12 +1,12 @@
|
||||
{
|
||||
{
|
||||
"version": 1,
|
||||
"hooks": {
|
||||
"postToolUse": [
|
||||
{
|
||||
"command": "[ ! -f \".cursor/skills/impeccable/scripts/impeccable\" ] || \".cursor/skills/impeccable/scripts/impeccable\" hook",
|
||||
"command": "$d = Join-Path (Get-Location) '.cursor/skills/impeccable/scripts'; $c = Join-Path $d 'impeccable.cmd'; $x = Join-Path $d 'bin/windows-x64/impeccable.exe'; if (Test-Path $c) { & $c hook } elseif (Test-Path $x) { & $x hook }",
|
||||
"matcher": "^Write$",
|
||||
"timeout": 5
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
# Cursor 索引 / 文件监听忽略清单(gitignore 语法)
|
||||
# 目的:把 Cursor 监听的文件从 ~28932 个降到 ~750 个
|
||||
# 注意:.gitignore 不会影响 Cursor 的索引和文件监听,必须用这个文件
|
||||
|
||||
# ---- 依赖与构建产物(约 24725 个文件)----
|
||||
**/node_modules/
|
||||
**/dist/
|
||||
**/build/
|
||||
|
||||
# ---- Python 虚拟环境(约 3456 个文件)----
|
||||
**/.venv/
|
||||
**/venv/
|
||||
**/site-packages/
|
||||
|
||||
# ---- Python 字节码与测试缓存 ----
|
||||
**/__pycache__/
|
||||
**/*.pyc
|
||||
**/*.pyo
|
||||
**/.pytest_cache/
|
||||
|
||||
# ---- 版本库内部数据 ----
|
||||
**/.git/
|
||||
Reference in New Issue
Block a user