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
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user