Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/markdown-notes/links.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function M.follow_link()

-- Try to find the file if exact match doesn't exist
if vim.fn.filereadable(file_path) == 0 then
local find_cmd = "find "
local find_cmd = "find -L "
.. vim.fn.expand(options.vault_path)
.. " -name '*"
.. link_text
Expand Down
4 changes: 2 additions & 2 deletions lua/markdown-notes/notes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ function M.search_tags()

local vault_path = vim.fn.expand(options.vault_path)

-- Get all markdown files
local find_cmd = "find " .. vim.fn.shellescape(vault_path) ..
-- Get all markdown files (-L follows symlinks)
local find_cmd = "find -L " .. vim.fn.shellescape(vault_path) ..
" -name '*.md' -type f -not -path '*/.*'"
local all_files = vim.fn.systemlist(find_cmd)

Expand Down