-
Notifications
You must be signed in to change notification settings - Fork 33
File Tags
Calvin Bochulak edited this page Dec 7, 2022
·
1 revision
---@param string
local function tag_dir(dir_path)
dir_path = vim.fs.normalize(dir_path)
for file_name, _ in vim.fs.dir(dir_path) do
local file_path = vim.fs.normalize(dir_path .. "/" .. file_name)
if vim.fn.isdirectory(file_path) == 0 then
require("grapple").tag({ file_path = file_path })
end
end
endUsage
tag_dir("$HOME")