{"id":20128723,"url":"https://github.com/nriver/copy-code-block-widget","last_synced_at":"2025-04-09T15:50:59.537Z","repository":{"id":238963901,"uuid":"798112741","full_name":"Nriver/copy-code-block-widget","owner":"Nriver","description":"Double click to copy code block in Trilium Notes","archived":false,"fork":false,"pushed_at":"2025-03-28T01:48:09.000Z","size":142,"stargazers_count":18,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T22:33:05.403Z","etag":null,"topics":["trilium","trilium-plugin","trilium-widget"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nriver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-09T05:49:17.000Z","updated_at":"2025-03-28T01:48:13.000Z","dependencies_parsed_at":"2024-05-09T06:43:18.794Z","dependency_job_id":"2fd03199-f6dd-4d06-a4dc-b71e4707c67a","html_url":"https://github.com/Nriver/copy-code-block-widget","commit_stats":null,"previous_names":["nriver/copy-code-block-widget"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nriver%2Fcopy-code-block-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nriver%2Fcopy-code-block-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nriver%2Fcopy-code-block-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nriver%2Fcopy-code-block-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nriver","download_url":"https://codeload.github.com/Nriver/copy-code-block-widget/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248063896,"owners_count":21041854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["trilium","trilium-plugin","trilium-widget"],"created_at":"2024-11-13T20:29:16.005Z","updated_at":"2025-04-09T15:50:59.532Z","avatar_url":"https://github.com/Nriver.png","language":"JavaScript","funding_links":["https://ko-fi.com/nriver"],"categories":[],"sub_categories":[],"readme":"# Copy Code Block Widget\n\n[中文说明](README_CN.md)\n\nPlease stand up and stretch your body for a while if you see this :)\n\nHello! If you appreciate my creations, kindly consider [backing me](#donation). Your support is greatly appreciated. Thank you!\n\n**Enhance Your Experience**\n\nCopy code block widget for Trilium. Double click to copy code block content in Trilium.\n\n# Screenshots\n\n## Double click to copy\n\nDouble click on code block to copy it.\n\n![overall look](docs/copy1.gif)\n\nYou can also copy inline code.\n\n![inline code](docs/copy-inline-code.gif)\n\n## Multi-language support\n\n![multi language](docs/copy2.gif)\n\n# How to Install\n\n1. Download the zip file from the [release page](https://github.com/Nriver/copy-code-block-widget/releases).\n2. Right-click note tree in Trilium and click import, uncheck `Safe Import`.\n3. Restart Trilium Notes or use `ctrl+r` to reload the interface.\n4. Open a `Text` note, double-click on the code block.\n5. Have fun.\n\n# Hints\n\n1. You can tweak configs in the `config` subnote.\n2. i18n support, check the `translations` subnote for the translated texts.\n3. There will be a notification telling you have successfully copied the code block :)\n\nP.S. If this widget does not work in your client or web browser, try increasing the `executeDelay` in `config` to better suit your settings.\n\n# Why I Made This?\n\nThere 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.\n\n# Donation\n\nKo-fi:  \n[![Support Me on Ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/nriver)\n\nAlipay:  \n![Alipay](https://github.com/Nriver/trilium-translation/raw/main/docs/alipay.png)\n\nWeChat Pay:  \n![WeChat Pay](https://github.com/Nriver/trilium-translation/raw/main/docs/wechat_pay.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnriver%2Fcopy-code-block-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnriver%2Fcopy-code-block-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnriver%2Fcopy-code-block-widget/lists"}