Files
xejrax_file-search/SKILL.md

1.2 KiB

name, description, metadata
name description metadata
file-search 使用fd和rg快速文件名和内容搜索。
openclaw
emoji requires install
🔍
bins
fd
rg
id kind package bins label
dnf-fd dnf fd-find
fd
Install fd-find (dnf)
id kind package bins label
dnf-rg dnf ripgrep
rg
Install ripgrep (dnf)

File Search Skill

Fast file-name and content search using fd and rg (ripgrep).

Find Files by Name

Search for files matching a pattern:

fd "\.rs$" /home/xrx/projects

Find files by exact name:

fd -g "Cargo.toml" /home/xrx/projects

Search File Contents

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

Install

sudo dnf install fd-find ripgrep