Skip to content

Commit 3baea08

Browse files
neo451github-actions[bot]
authored andcommitted
chore(docs): auto generate docs
1 parent 423a768 commit 3baea08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/obsidian.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,11 +624,11 @@ carefully and customize it to your needs:
624624
-- You can always override this per image by passing a full path to the command instead of just a filename.
625625
img_folder = "assets/imgs", -- This is the default
626626

627-
-- Optional, customize the default name or prefix when pasting images via `:ObsidianPasteImg`.
627+
-- A function that determines default name or prefix when pasting images via `:ObsidianPasteImg`.
628628
---@return string
629629
img_name_func = function()
630630
-- Prefix image names with timestamp.
631-
return string.format("%s-", os.time())
631+
return string.format("Pasted image %s", os.date "%Y%m%d%H%M%S")
632632
end,
633633

634634
-- A function that determines the text to insert in the note when pasting an image.

0 commit comments

Comments
 (0)