ソースを参照

📝 docs(CLAUDE.md): 更新文档查找命令说明

- 将文档查找的绝对路径示例替换为具体的 `ls` 和 `find` 命令示例
- 提供查看目录内容、查找所有 markdown 文件以及查看前 20 个文件的实用命令
yourname 2 週間 前
コミット
8eb5d2a0c6
1 ファイル変更4 行追加1 行削除
  1. 4 1
      CLAUDE.md

+ 4 - 1
CLAUDE.md

@@ -24,4 +24,7 @@
   - **Mini测试**: 需要先进入mini目录再运行 `pnpm test --testNamePattern "测试名称"`
 - **表单调试**: 表单提交失败时,在表单form onsubmit=form.handleSubmit的第二个参数中加console.debug来看表单验证错误,例如:`form.handleSubmit(handleSubmit, (errors) => console.debug('表单验证错误:', errors))`
 - 类型检查 可以用 pnpm typecheck 加 grep来过滤要检查的 指定文件
-- **文档查找**: 查找文档时在当前项目目录的 `docs` 目录下用绝对路径来查找,例如:`/mnt/code/186-175-template-6/docs/**/*.md`
+- **文档查找**: 查找文档时在当前项目目录的 `docs` 目录下使用 `ls` 或 `find` 命令来查找,例如:
+  - `ls /mnt/code/186-175-template-6/docs/` 查看 docs 目录下的文件
+  - `find /mnt/code/186-175-template-6/docs -name "*.md"` 查找所有 markdown 文件
+  - `find /mnt/code/186-175-template-6/docs -type f -name "*.md" | head -20` 查看前 20 个 markdown 文件