#1099 search obeys active ignore filters
This commit is contained in:
@@ -2,6 +2,7 @@ local api = vim.api
|
|||||||
local uv = vim.loop
|
local uv = vim.loop
|
||||||
local utils = require "nvim-tree.utils"
|
local utils = require "nvim-tree.utils"
|
||||||
local core = require "nvim-tree.core"
|
local core = require "nvim-tree.core"
|
||||||
|
local filters = require "nvim-tree.explorer.filters"
|
||||||
local find_file = require("nvim-tree.actions.find-file").fn
|
local find_file = require("nvim-tree.actions.find-file").fn
|
||||||
|
|
||||||
local M = {}
|
local M = {}
|
||||||
@@ -27,6 +28,7 @@ local function search(dir, input_path)
|
|||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not filters.should_ignore(path) then
|
||||||
if string.find(path, "/" .. input_path .. "$") then
|
if string.find(path, "/" .. input_path .. "$") then
|
||||||
return path
|
return path
|
||||||
end
|
end
|
||||||
@@ -37,6 +39,7 @@ local function search(dir, input_path)
|
|||||||
return path
|
return path
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
name, _ = uv.fs_scandir_next(handle)
|
name, _ = uv.fs_scandir_next(handle)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user