Skip to content

Commit

Permalink
remove unused util.find_markdown_files()
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed Nov 7, 2023
1 parent ef9c753 commit 40517d9
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lua/obsidian/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,6 @@ util.unique = function(table)
return out
end

---Find all markdown files in a directory.
---
---@param dir string|Path
---@return string[]
util.find_markdown_files = function(dir)
return scan.scan_dir(vim.fs.normalize(tostring(dir)), {
hidden = false,
add_dirs = false,
search_pattern = ".*%.md",
})
end

---Find all notes with the given file_name recursively in a directory.
---
---@param dir string|Path
Expand Down

0 comments on commit 40517d9

Please sign in to comment.