Support @file and @dir in prompt #10
xierenyuan
started this conversation in
General
Replies: 3 comments 1 reply
-
不过本身 FileReadTool 就会执行 这感觉有点尴尬 还是说满足一定规范 类似 @file src/app.tsx @dir src/pages 或者是 @/app.tsx |
Beta Was this translation helpful? Give feedback.
0 replies
-
写下我的理解。 1、 |
Beta Was this translation helpful? Give feedback.
0 replies
-
比如这里的 src/app.tsx 用户应该输入的是 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我理解是尝试 prompt 中能匹配到 类似文件的路径、比如
takumi "解释 src/app.tsx 这个文件"
takumi "解释 src/pages 下的功能"
通过正则匹配出
src/app.tsx
和src/pages
和当前路径拼接确认是文件或者目录、如果是 读取文件通过 以下格式拼接到上下文中
Beta Was this translation helpful? Give feedback.
All reactions