From 7487a2e85041f6a29122250cb0219b530394a9a7 Mon Sep 17 00:00:00 2001 From: Bryant Paz Date: Wed, 8 Jan 2025 18:45:29 -0600 Subject: [PATCH] docs: fix variable name from `url` to `img` in usage example * fix: deal with lack of opts.attachment * docs: add note for this change --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d5d382b62..c17ba781e 100644 --- a/README.md +++ b/README.md @@ -400,8 +400,8 @@ This is a complete list of all of the options that can be passed to `require("ob ---@param img string follow_img_func = function(img) vim.fn.jobstart { "qlmanage", "-p", img } -- Mac OS quick look preview - -- vim.fn.jobstart({"xdg-open", url}) -- linux - -- vim.cmd(':silent exec "!start ' .. url .. '"') -- Windows + -- vim.fn.jobstart({"xdg-open", img}) -- linux + -- vim.cmd(':silent exec "!start ' .. img .. '"') -- Windows end, -- Optional, set to true if you use the Obsidian Advanced URI plugin.