dsearch
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesedsearch
dsearch
dsearchdsearchTools
工具
dsearch
dsearch
The primary command for interacting with documentation.
这是与文档交互的核心命令。
Examples
示例
List installed documentation
To see what documentation is available:
bash
dsearch listSearch for a specific term
To search for a term across all installed documentation:
bash
dsearch "query string"Search within a specific documentation set
To narrow down the search to a specific language or library (e.g., Go):
bash
dsearch "http.Client" --doc goRead documentation in Markdown format
For LLM consumption, always use to get clean Markdown output, and include to ensure the entire page is retrieved without truncation:
--format md--fullbash
dsearch "http.Client" --doc go --format md --fullInstall new documentation
If the required documentation is missing:
bash
dsearch install python查看已安装的文档
查看当前可用的文档:
bash
dsearch list搜索特定术语
在所有已安装的文档中搜索某个术语:
bash
dsearch "query string"在特定文档集中搜索
将搜索范围缩小到特定语言或库(例如Go):
bash
dsearch "http.Client" --doc go以Markdown格式阅读文档
为适配LLM使用,始终使用参数获取整洁的Markdown输出,并添加参数确保获取完整页面内容,避免被截断:
--format md--fullbash
dsearch "http.Client" --doc go --format md --full安装新文档
如果所需文档未安装:
bash
dsearch install pythonBest Practices
最佳实践
- Always use when valid to get machine-readable output.
--format md - Use to retrieve the complete documentation page, preventing truncation of long articles.
--full - Use to reduce noise when you know the context (e.g., searching for
--doc <name>inMapvsgo).javascript - If a search returns too many results, try a more specific query or use the flag.
--limit
- 在适用时始终使用参数,以获得机器可读的输出。
--format md - 使用参数获取完整的文档页面,避免长文章被截断。
--full - 当你明确上下文时,使用参数减少无关结果(例如,在
--doc <名称>和go中搜索javascript的区别)。Map - 如果搜索结果过多,尝试使用更具体的查询或参数限制结果数量。
--limit