← Back to team overview

zim-wiki team mailing list archive

One way round the clipboard issue in 0.66 in Windows

 

So I wrote a Custom Tool, using 8th <https://8th-dev.com>.

This is the Custom Tool definition:

   [Desktop Entry]
   Type=X-Zim-CustomTool
   Version=1.0
   GenericName=
   Name=CopyToClipboard
   Comment=Seeing as the current copy doesn't work
   Exec=
   TryExec=
   Icon=
   MimeType=
   Terminal=false
   NoDisplay=false
   X-Zim-ExecTool=8th.exe c:\bin\CopyToClipboard.8th "%t"
   X-Zim-ReadOnly=true
   X-Zim-ShowInToolBar=true
   X-Zim-ShowInContextMenu=Text
   X-Zim-ReplaceSelection=false

And this is the 8th code (stored in CopyToClipboard.8th)

   : main
        argc 0 = not if
            0 args
            >clip
        then
   ;
   main bye

There may be size limits to what I can pass in on %t to the script, but it's survival until 0.67.

Kind regards,

Bruce.


Follow ups