author: Chenzhu-Xie name: Library/xczphysics/CONFIG/Copy_as/page_title/Page_Wiki tags: meta/library
#forward #wiki
[wiki link](wiki link)
[forward wiki](forward wiki)
@ref (reference) in Tana[Quote (Block)](Quote (Block)) in SiYuancommand.define {
-- name = "Copy: Page Reference",
name = "Page: Copy Wiki",
key = "Shift-Alt-w",
run = function()
local ref = string.format("[%s](%s)", editor.getCurrentPage())
editor.copyToClipboard(ref)
editor.flashNotification("Page Reference ✅", "info")
editor.flashNotification(ref, "info")
end
}