mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
shorten markdown links to pasted images
This commit is contained in:
@@ -40,7 +40,7 @@ local ZkCfg = {
|
||||
|
||||
-- image link style
|
||||
-- wiki: ![[image name]]
|
||||
-- markdown: 
|
||||
-- markdown: 
|
||||
image_link_style = "wiki",
|
||||
|
||||
-- integrate with calendar-vim
|
||||
@@ -117,7 +117,7 @@ local imgFromClipboard = function()
|
||||
os.execute("xclip -selection clipboard -t image/png -o > " .. pngpath)
|
||||
if file_exists(pngpath) then
|
||||
if ZkCfg.image_link_style == "markdown" then
|
||||
vim.api.nvim_put({ "
|
||||
vim.api.nvim_put({ "
|
||||
else
|
||||
vim.api.nvim_put({ "![[" .. pngname .. "]]" }, "", false, true)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user