File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -456,6 +456,15 @@ carefully and customize it to your needs:
456456 -- vim.cmd(':silent exec "!start ' .. url .. '"') -- Windows
457457 end,
458458
459+ -- Optional, by default when you use `:ObsidianFollowLink` on a link to an image
460+ -- file it will be ignored but you can customize this behavior here.
461+ ---@param img string
462+ follow_url_func = function(img)
463+ vim.fn.jobstart { "qlmanage", "-p", img } -- Mac OS quick look preview
464+ -- vim.fn.jobstart({"xdg-open", url}) -- linux
465+ -- vim.cmd(':silent exec "!start ' .. url .. '"') -- Windows
466+ end,
467+
459468 -- Optional, set to true if you use the Obsidian Advanced URI plugin.
460469 -- https://github.com/Vinzent03/obsidian-advanced-uri
461470 use_advanced_uri = false,
You can’t perform that action at this time.
0 commit comments