name: file-search
description: "Fast file-name and content search using fd and rg (ripgrep)."
metadata:
{
"openclaw":
{
"emoji": "🔍",
"requires": { "bins": ["fd", "rg"] },
"install":
[
{
"id": "dnf-fd",
"kind": "dnf",
"package": "fd-find",
"bins": ["fd"],
"label": "Install fd-find (dnf)",
},
{
"id": "dnf-rg",
"kind": "dnf",
"package": "ripgrep",
"bins": ["rg"],
"label": "Install ripgrep (dnf)",
},
],
},
}
Fast file-name and content search using fd and rg (ripgrep).
7w4.net提供免費和付費技能下載。
Search for files matching a pattern:
fd "\.rs$" /home/xrx/projects
Find files by exact name:
fd -g "Cargo.toml" /home/xrx/projects
Search for a regex pattern across files:
rg "TODO|FIXME" /home/xrx/projects
Search with context lines:
rg -C 3 "fn main" /home/xrx/projects --type rust
sudo dnf install fd-find ripgrep
這是一個質量中規中矩的搜尋工具技能文件,結構清晰、使用簡便是其亮點,基礎功能介紹完整且包含安裝指導。但文件深度有限,提供的示例較少且較為簡單,缺少進階操作和實用技巧。對於想要深入使用的使用者來說,內容可能不夠豐富。總體而言,作為入門參考足夠,但實用價值有提升空間。