- Nice!
- Rather than calling
runpage
every time, should provide a macro for a dedicated button that runs only one function, e.g.::copyparent "<button class='kit eval' data-kit='exportblockcontent'> copy content of parent block </button>"
- Or even one button for each mode, breaking
exportBlockContent
into separate functions for each case.- Generally avoid
switch
- Generally avoid
- Check How to Copy/Export Results from an Advanced Query in Logseq for binding the click event to the desired entry function.
- Or even one button for each mode, breaking
1 Like