Skip to content

Commit

Permalink
The grep command does not exclude symbolic links in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ziboh committed Aug 3, 2024
1 parent 743029b commit c57a21e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/gp/tasker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ M.grep_directory = function(buf, directory, pattern, callback)
-- strip leading and trailing non alphanumeric characters
local re = pattern:gsub("^%W*(.-)%W*$", "%1")

M.run(buf, "grep", { "-irEn", "--null", pattern, directory }, function(c, _, stdout, _)
M.run(buf, "grep", { "-irEn", "--null", "--exclude=last.md", pattern, directory }, function(c, _, stdout, _)
local results = {}
if c ~= 0 then
callback(results, re)
Expand Down

0 comments on commit c57a21e

Please sign in to comment.