惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
V
V2EX
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
云风的 BLOG
云风的 BLOG
Blog — PlanetScale
Blog — PlanetScale
Recent Announcements
Recent Announcements
Last Week in AI
Last Week in AI
博客园 - Franky
Microsoft Security Blog
Microsoft Security Blog
Hugging Face - Blog
Hugging Face - Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Vercel News
Vercel News
MyScale Blog
MyScale Blog
大猫的无限游戏
大猫的无限游戏
罗磊的独立博客
H
Help Net Security
月光博客
月光博客
Martin Fowler
Martin Fowler
博客园 - 【当耐特】
宝玉的分享
宝玉的分享
P
Proofpoint News Feed
GbyAI
GbyAI
腾讯CDC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

jdhao's digital space

Conversion between base64 and OpenCV or PIL Image 腾讯云对象存储博客图床开启 CDN 加速(不需要购买额外域名) Search and Replace in Multiple Files in Vim/Neovim Change Table Column Width in LaTeX Image or Table Side by Side in LaTeX LaTeX 并排显示图像或表格 Firenvim: Neovim inside Your Browser Content inside HTML tags missing in Latest Hugo? Creating Markdown Front Matter with Ultisnips Labelme JSON 标注格式转 voc XML 格式 Nifty Nvim Techniques That Make My Life Easier -- Series 6 macOS 下如何为视频制作字幕 Running Command Asynchronously inside Neovim Resolving Merge Conflict after Git Stash Pop Pylint: command not found? A Hands-on Experience with Neovim's Built-in LSP Support How to Convert PDF to Images with Imagemagick 互联网上常用缩略语集锦 File Backup in Neovim Converting PDF Pages to Images with Poppler Nifty Nvim Techniques That Make My Life Easier -- Series 5 Neovim Configuration for System-wide Use How to sort a list of tuple or list in Python -- lambda or itemgetter? Building A Vim Statusline from Scratch 人类第一颗原子弹爆炸始末 Distributed Training in PyTorch with Horovod Learning Expect Programming Essential Knowledge about SSH Nifty LaTeX Techniques -- Series 1 更改 Adsense 邮寄地址,重新寄送 PIN
Ripgrep Config to Search Hidden Files
2026-04-17 · via jdhao's digital space

Notes about how to use ripgrep to search hidden files and configuration related to Neovim.

By default, ripgrep will ignore hidden files and directories. To search hidden files/directories, we need to add --hidden option.

ripgrep config file#

Unlike other tools, ripgrep does not really have a default place to store its config. Instead, you can store the config anywhere and use the env variable RIPGREP_CONFIG_PATH to point to it.

For example, you can store it in ~/.config/ripgrep/config, then set the env variable in your .bashrc or .zshrc:

export RIPGREP_CONFIG_PATH=$HOME/.config/ripgrep/config

For the content of the config, it is in facet just a list of command line options.

# show line and column number for each match
--line-number
--column

# do not print the file heading
--no-heading

--color=always
--smart-case

--max-columns=4096

# use regex by default
# --regexp

# search hidden files and directories
--hidden

# do not search .git
--glob=!.git/

glob pattern in ripgrep#

Note that for globbing, the pattern foo/ and foo/** is not the same. It seems that for negative globbing, they work similarly. However, for positive globbing, i.e., when you only want to search in a certain directory, they are totaly different.

This will find nothing, and no directory is searched.

This works and will find my_term if it exists in some file under foo/ directory or sub-directories.