Files
lazy-project-search.nvim/lua/project_search/templates/common.json
T
lambert.liandClaude Opus 4.7 92d8a93a68 feat: extract templates to JSON and expand preset coverage
- Extract preset definitions from templates.lua into per-framework
  JSON files under lua/project_search/templates/ (common, react, vue, nest)
- templates.lua now loads from JSON via M.load(name), keeping the
  default_rules() API unchanged
- Expand common: add console.log, deprecated, live search presets
- Expand React: add React Query hooks, context providers, Zustand
  stores, shadcn imports, service files/content presets
- Expand Vue: add watch/watchEffect, Pinia stores, provide/inject,
  composables, page components presets
- Expand NestJS: add DTOs, guards, interceptors, decorators,
  entity/module files presets
- Split preset guide into separate en/ and zh/ directories

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 16:55:14 +08:00

59 lines
1.6 KiB
JSON

[
{
"id": "common.files.src",
"name": "Files: src",
"description": "Open a file picker rooted at the project's src directory.",
"type": "files",
"cwd": "src"
},
{
"id": "common.todo_fixme",
"name": "Search: TODO / FIXME",
"description": "Search TODO and FIXME markers in source files.",
"type": "grep",
"search": "TODO|FIXME",
"regex": true,
"dirs": ["src"]
},
{
"id": "common.env_usage",
"name": "Search: env usage",
"description": "Search process.env and import.meta.env references.",
"type": "grep",
"search": "process\\.env|import\\.meta\\.env",
"regex": true,
"dirs": ["src"],
"glob": ["*.ts", "*.tsx", "*.js", "*.jsx", "*.vue"]
},
{
"id": "common.console_log",
"name": "Search: console.log",
"description": "Find leftover console.log statements for cleanup.",
"type": "grep",
"search": "console\\.log",
"regex": true,
"dirs": ["src"],
"glob": ["*.ts", "*.tsx", "*.js", "*.jsx", "*.vue"],
"exclude": ["*.test.*", "*.spec.*"]
},
{
"id": "common.deprecated",
"name": "Search: deprecated",
"description": "Find @deprecated annotations and deprecated markers.",
"type": "grep",
"search": "@deprecated|DEPRECATED",
"regex": true,
"dirs": ["src"],
"glob": ["*.ts", "*.tsx", "*.js", "*.jsx", "*.vue"]
},
{
"id": "common.live_src",
"name": "Search: live in src",
"description": "Interactive content search across src — type to search in real time.",
"type": "grep",
"search": "",
"live": true,
"dirs": ["src"]
}
]