AutoYADM commit: 2024-12-03 18:20:03

This commit is contained in:
Daniel Fichtinger 2024-12-03 18:20:03 -05:00
parent 2cc615e218
commit 51c195a9d8

View file

@ -10,9 +10,9 @@
-- }) -- })
local function resolver(document_path, image_path, fallback) local function resolver(document_path, image_path, fallback)
local working_dir = vim.fn.getcwd() local working_dir = vim.fn.getcwd()
Snacks.notify.notify("Resolving... " .. working_dir) Snacks.notify.notify("Doc path... " .. document_path)
-- Format path for Obsidian vault -- Format path for Obsidian vault
if working_dir:find("/home/fic/second-brain", 1, true) then if document_path:find("/home/fic/second-brain", 1, true) then
-- if working_dir:find("~/second-brain/") then -- if working_dir:find("~/second-brain/") then
local out = "Obsidian image: " .. working_dir .. "/" .. image_path local out = "Obsidian image: " .. working_dir .. "/" .. image_path
Snacks.notify.notify(out) Snacks.notify.notify(out)