八次调用。一行。
一个 omp 显示插件。每次调用压成一行;
连续调用合并成一条摘要。
只改显示。工具调用、结果和模型看到的内容都不变。
omp plugin install github:OneLastHuman/omp-compact-tools
CtrlO
展开任意模式
同样的八次调用,三种看法。
同样的八次工具调用,三种显示方式:默认方框、每次一行,或合并成一条摘要。用上面的按钮切换。
同样的工作,三种读法。
用 /compact-tools 切换模式。插件默认使用 line。
default
每次调用保留自己的方框。
❯ Bash ls -lasrc package.json README.md
● Read src/index.ts124 lines
⌕ Grep registerTool3 matches · 2 files
line
一行一个调用:工具、目标、结果。
❯Bashls -la8 entries
●Readsrc/index.ts124 lines
⌕GrepregisterTool3 matches
group
连续多次调用合并成一条摘要。
•3 tools Bash · Read · Grep
安装并启用
需要 omp 19.3 或更新版本。
omp plugin install github:OneLastHuman/omp-compact-tools
- 用上面的命令安装插件。
- 运行
omp config set extensionRenderers.transcriptPresenters true,然后重启 omp。 - 运行
/compact-tools切换模式,或用/compact-tools group直接进入合并模式。