Might not be needed much: http://akkartik.name/archives/foc/devlog-together/1661835473.383259.html#1668202655.743929 Still, seems useful to keep around.
LWQJ3CHBMBWIM4YYKJXAZBFGABICIFLJSGXPLDVGHIPEEY72AJYQC
WNILGROUH2LQ7GFGGWCHIE4YUWBQNU6QQETTL7UHGK3P5P7SEWCQC
OQIWNGD4Q7G5ZW7KTM6FUUEYX43DZ6LNP3Q5BXXLGE35QLU3LX5AC
QWWOAZ3P73XN74JBLI23YKM7KKRUCH55EMD7I6VPKG7B6DWZXB2QC
GQBUV2XOMEPMTXMPCBQWGGIUXGQDX77VTGPFIG6YT7G64ASOYHXQC
'copy id (of current node to clipboard)',
elseif cmd == 'copy id' then command.copy_id_to_clipboard()
elseif cmd == 'copy id' then
command.copy_id_to_clipboard()
endendfunction command.copy_id_to_clipboard() if Cursor_pane.col < 1 then add_error('no current note') return end local pane = Surface[Cursor_pane.col][Cursor_pane.row] if pane == nil then add_error('no current note') return
end
function command.copy_id_to_clipboard()
if Cursor_pane.col < 1 then
add_error('no current note')
return
local pane = Surface[Cursor_pane.col][Cursor_pane.row]
if pane == nil then
App.setClipboardText(pane.id)