Skip to content

Commit 0a40e75

Browse files
committed
feat: make fd and rg follow symlinks
Noticed that neither of these were showing symlinks. Example from my dotfiles, these two files in `bin/`: update-bundle -> ../aspects/nvim/support/update-bundle update-help-tags -> ../aspects/nvim/support/update-help-tags `:CommandTFd` and `:CommandTRipgrep` were showing the link targets but not the links themselves when searching for "update".
1 parent 8dfda23 commit 0a40e75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lua/wincent/commandt/private/finders/fd.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ local pushd = require('wincent.commandt.pushd')
99
local fd = {
1010
command = function(directory, _options)
1111
pushd(directory)
12-
local command = 'fd --hidden --print0 --type file --search-path . 2> /dev/null'
12+
local command = 'fd --follow --hidden --print0 --type file --search-path . 2> /dev/null'
1313
local drop = 2 -- drop './'
1414
return command, drop
1515
end,

lua/wincent/commandt/private/finders/rg.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ local pushd = require('wincent.commandt.pushd')
99
local rg = {
1010
command = function(directory, _options)
1111
pushd(directory)
12-
local command = 'rg --files --null 2> /dev/null'
12+
local command = 'rg --files --follow --no-messages --null 2> /dev/null'
1313
local drop = 0
1414
return command, drop
1515
end,

0 commit comments

Comments
 (0)