Skip to content

Nriver/copy-code-block-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Double click on code block to copy it.

overall look

You can also copy inline code.

inline code

Multi-language support

multi language

How to Install

  1. Download the zip file from the release page.
  2. Right-click note tree in Trilium and click import, uncheck Safe Import.
  3. Restart Trilium Notes or use ctrl+r to reload the interface.
  4. Open a Text note, double-click on the code block.
  5. Have fun.

Hints

  1. You can tweak configs in the config subnote.
  2. i18n support, check the translations subnote for the translated texts.
  3. 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 ckeditor/ckeditor5#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

Ko-fi:
Support Me on Ko-fi

Alipay:
Alipay

WeChat Pay:
WeChat Pay

About

Double click to copy code block in Trilium Notes

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy