Skip to content

Commit fce967d

Browse files
epwalshgithub-actions[bot]
authored andcommitted
chore(docs): auto generate docs
1 parent 47f0074 commit fce967d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/obsidian.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)