File tree 1 file changed +4
-3
lines changed
lua/neo-tree/sources/filesystem/lib
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,9 @@ M.filter_files_external = function(
184
184
file_types [# file_types + 1 ] = file_type_map [k ]
185
185
end
186
186
end
187
+ if ignore .dotfiles then
188
+ append (" -name" , " .*" , " -prune" , " -o" )
189
+ end
187
190
if # file_types > 0 then
188
191
append (" -type" , table.concat (file_types , " ," ))
189
192
end
@@ -193,9 +196,6 @@ M.filter_files_external = function(
193
196
if types .executable then
194
197
append (" -executable" )
195
198
end
196
- if not ignore .dotfiles then
197
- append (" -not" , " -path" , " */.*" )
198
- end
199
199
if glob ~= nil and not full_path then
200
200
append (" -iname" , glob )
201
201
elseif glob ~= nil and full_path then
@@ -205,6 +205,7 @@ M.filter_files_external = function(
205
205
elseif regex ~= nil then
206
206
append (" -regextype" , " sed" , " -regex" , regex )
207
207
end
208
+ append (" -print" )
208
209
append_find_args ()
209
210
elseif cmd == " fzf" then
210
211
-- This does not work yet, there's some kind of issue with how fzf uses stdout
You can’t perform that action at this time.
0 commit comments