Awesome
Copy Code Block Widget
Please stand up and stretch your body for a while if you see this :)
Hello! If you appreciate my creations, kindly consider backing me. Your support is greatly appreciated. Thank you!
Enhance Your Experience
Copy code block widget for Trilium. Double click to copy code block content in Trilium.
Screenshots
Double click to copy
Multi-language support
How to Install
- Download the zip file from the release page.
- Right-click note tree in Trilium and click import, uncheck
Safe Import
. - Restart Trilium Notes or use
ctrl+r
to reload the interface. - Open a
Text
note, double-click on the code block. - Have fun.
Hints
- You can tweak configs in the
config
subnote. - i18n support, check the
translations
subnote for the translated texts. - There will be a notification telling you have successfully copied the code block :)
P.S. If this widget does not work in your client or web browser, try increasing the executeDelay
in config
to better suit your settings.
Why I Made This?
There is no copy button in Trilium due to the upstream CKEditor's lack of this feature. The related issue https://github.com/ckeditor/ckeditor5/issues/9774 has not been touched for 3 years until now. I would assume this won't be fixed in the upstream. So, I made an implementation by myself.
Donation
Alipay:
WeChat Pay: