From 42964432a56b7199e4a4900ac8eb449092fc0bb0 Mon Sep 17 00:00:00 2001 From: Nixevol Date: Tue, 17 Nov 2026 11:26:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20.cursorignore=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=BB=A5=E4=BC=98=E5=8C=96=20Cursor=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=9B=91=E5=90=AC=EF=BC=8C=E5=87=8F=E5=B0=91?= =?UTF-8?q?=E7=B4=A2=E5=BC=95=E6=96=87=E4=BB=B6=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cursor/hooks.json | 6 +++--- .cursorignore | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 .cursorignore diff --git a/.cursor/hooks.json b/.cursor/hooks.json index 7ce5e64..d635d6d 100644 --- a/.cursor/hooks.json +++ b/.cursor/hooks.json @@ -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 } ] } -} +} \ No newline at end of file diff --git a/.cursorignore b/.cursorignore new file mode 100644 index 0000000..0e10ab0 --- /dev/null +++ b/.cursorignore @@ -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/