From 9eb41820f8fe739d2f25b7ed6240f5f1a8a39d87 Mon Sep 17 00:00:00 2001 From: bhagwan Date: Sat, 28 Dec 2024 17:57:50 -0800 Subject: [PATCH] docs: clarify comment regarding `rg --column` --- lua/fzf-lua/providers/grep.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/fzf-lua/providers/grep.lua b/lua/fzf-lua/providers/grep.lua index 1869c93b..c13926cc 100644 --- a/lua/fzf-lua/providers/grep.lua +++ b/lua/fzf-lua/providers/grep.lua @@ -93,7 +93,8 @@ local get_grep_cmd = function(opts, search_query, no_esc) do -- Auto add `--line-number` for grep and `--line-number --column` for rg - -- although `--column` implies `--line-number` with rg + -- NOTE: although rg's `--column` implies `--line-number` we still add + -- `--line-number` since we remove `--column` when search regex is empty local bin = path.tail(command:match("[^%s]+")) local bin2flags = { grep = { { "--line-number", "-n" }, { "--recursive", "-r" } },