plugins.clipboard-image.default.affix
String that sandwiched the image’s path.
Default:
default
:"{img_path}"
markdown
:"![]({img_path})"
Note: Affix can be multi lines, like this:
# You can use line break escape sequence
affix = "<\n %s\n>";
# Or lua's double square brackets
affix.__raw = \'\'
[[<
%s
>]]
\'\'
Type: null or string or raw lua code
Default:
null
Declared by:
plugins.clipboard-image.default.imgDir
Dir name where the image will be pasted to.
Note: If you want to create nested dir, it is better to use table since windows and unix have different path separator.
Plugin default: img
Type: null or string or list of string or raw lua code
Default:
null
Declared by:
plugins.clipboard-image.default.imgDirTxt
Dir that will be inserted into text/buffer.
Plugin default: img
Type: null or string or list of string or raw lua code
Default:
null
Declared by:
plugins.clipboard-image.default.imgHandler
Function that will handle image after pasted.
Note: img
is a table that contain pasted image’s {name}
and {path}
.
Plugin default: function(img) end
Type: null or lua function string
Default:
null
Declared by:
plugins.clipboard-image.default.imgName
Image’s name.
Plugin default: "{__raw = \"function() return os.date('%Y-%m-%d-%H-%M-%S') end\";}"
Type: null or string or raw lua code
Default:
null
Declared by: