Ver código fonte

docs: translate README to Chinese
chore: add 'cpai' keyword, update repository URL

Developer 1 mês atrás
pai
commit
d6ab29a89f
3 arquivos alterados com 21 adições e 21 exclusões
  1. 17 18
      README.md
  2. 0 0
      dist/extension.js.map
  3. 4 3
      package.json

+ 17 - 18
README.md

@@ -1,15 +1,21 @@
 # Copy AI Context
 
-A VS Code extension to copy file/folder paths formatted for AI assistants (Claude, ChatGPT, pi agent, etc.).
+复制上下文供AI助手使用 —— 复制文件、内容的引用信息。
 
-## Features
+用最简短的描述让ai助手理解用户需要其关注的内容。
 
-- **Copy Selection** — 编辑器右键(有选中代码时),复制引用头 `[path LnCn-LnCn]`
-- **Copy Active File** — 编辑器右键(无选中代码时),复制路径 `[path]`
-- **Copy Single Item** — 资源管理器右键单文件/单文件夹,复制路径
-- **Copy Multi Items** — 资源管理器右键多选(文件/文件夹),批量复制路径(文件夹递归展开)
+你可以这样跟ai助手沟通:参考[doc1.md][doc2.md][doc3.md]修正[file1.ts L10C1-L25C30],函数格式与[file2.ts L5C1-L20C10]保持一致。
 
-## Output Format
+## 功能描述
+
+- **复制选中区域** — 编辑器右键(有选中代码时),复制引用头 `[path LnCn-LnCn]`
+- **复制当前文件** — 编辑器右键(无选中代码时),复制路径 `[path]`
+- **复制单选** — 资源管理器右键单文件/单文件夹,复制路径
+- **复制多选** — 资源管理器右键多选(文件/文件夹),批量复制路径(文件夹递归展开)
+
+## 输出格式
+
+> 表示:选中区域在 src/file.ts 文件 的 第10行第1列 到 第25行第30列
 
 ```
 [src/file.ts L10C1-L25C30]
@@ -17,19 +23,12 @@ A VS Code extension to copy file/folder paths formatted for AI assistants (Claud
 
 ### 多文件
 
+> 表示:选中了三个文件,分别是 src/file1.ts、src/file2.ts、src/file3.ts
+
 ```
-[src/file1.ts][src/file2.ts]
+[src/file1.ts][src/file2.ts][src/file3.ts]
 ```
 
-## Requirements
+## 要求
 
 - VS Code 1.85+
-
-## Development
-
-```bash
-npm install
-npm run build
-```
-
-Press `F5` in VS Code to launch a development extension host.

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/extension.js.map


+ 4 - 3
package.json

@@ -1,8 +1,8 @@
 {
   "name": "copy-ai-ctx",
   "displayName": "Copy AI Ctx",
-  "description": "Copy code context for AI assistants — selected code, file contents, with paths and formatting",
-  "version": "0.2.3",
+  "description": "复制上下文供AI助手使用 —— 复制文件、内容的引用信息",
+  "version": "0.2.4",
   "publisher": "fivesay",
   "engines": {
     "vscode": "^1.85.0"
@@ -11,6 +11,7 @@
     "Other"
   ],
   "keywords": [
+    "cpai",
     "ai",
     "context",
     "copy",
@@ -88,6 +89,6 @@
   },
   "repository": {
     "type": "git",
-    "url": "https://git.ooo.ink/vsix/copy-ai-ctx.git"
+    "url": "https://git.ooo.ink/vsix/vsix-copy-ai-ctx.git"
   }
 }

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff