File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -624,11 +624,11 @@ carefully and customize it to your needs:
624
624
-- You can always override this per image by passing a full path to the command instead of just a filename.
625
625
img_folder = "assets/imgs", -- This is the default
626
626
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` .
628
628
---@return string
629
629
img_name_func = function()
630
630
-- 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" )
632
632
end,
633
633
634
634
-- A function that determines the text to insert in the note when pasting an image.
You can’t perform that action at this time.
0 commit comments