No description
Find a file
Moy ed44b9e5f0
Merge pull request #1 from RavenHogWarts/better-build
Add dotenv support and update VAULT_PATH configuration
2025-03-23 18:54:25 +08:00
.github/workflows Add release workflow 2025-03-23 00:29:58 +08:00
assets Update README again 2025-03-23 00:57:40 +08:00
easy-copy change the default link setting 2025-03-22 23:59:02 +08:00
scripts Add dotenv support and update VAULT_PATH configuration 2025-03-23 14:25:10 +08:00
src Add dotenv support and update VAULT_PATH configuration 2025-03-23 14:25:10 +08:00
.editorconfig Initial commit 2025-03-22 17:35:15 +08:00
.eslintignore Initial commit 2025-03-22 17:35:15 +08:00
.eslintrc Initial commit 2025-03-22 17:35:15 +08:00
.gitignore Add dotenv support and update VAULT_PATH configuration 2025-03-23 14:25:10 +08:00
.npmrc Initial commit 2025-03-22 17:35:15 +08:00
esbuild.config.mjs basic function + i18n 2025-03-22 22:26:46 +08:00
LICENSE Initial commit 2025-03-22 17:35:15 +08:00
manifest.json Update the settings interface to comply with plugin development standards 2025-03-23 00:29:45 +08:00
package-lock.json Add dotenv support and update VAULT_PATH configuration 2025-03-23 14:25:10 +08:00
package.json Add dotenv support and update VAULT_PATH configuration 2025-03-23 14:25:10 +08:00
README-zh.md Update README again 2025-03-23 00:57:40 +08:00
README.md Update README again 2025-03-23 00:57:40 +08:00
SECURITY.md Create SECURITY.md 2025-03-23 18:46:47 +08:00
styles.css init framework 2025-03-22 21:53:55 +08:00
tsconfig.json Initial commit 2025-03-22 17:35:15 +08:00
version-bump.mjs Initial commit 2025-03-22 17:35:15 +08:00
versions.json Initial commit 2025-03-22 17:35:15 +08:00

Easy Copy - Make Copying Smart and Simple!

English | 中文文档

Features

  • 🧙‍♂️ Smart Detection - Automatically identifies and copies different types of content based on cursor position
  • 🔍 Multiple Format Support - Copy inline code, bold text, highlighted text, italic text, block IDs, and heading links
  • 🌐 Multilingual Support - Full support for English, Simplified Chinese, and Traditional Chinese
  • 🎛️ Highly Customizable - Enable or disable specific copy features as needed

🤔 Why use this plugin

Inline Code — Just the Text Inside!

I often use inline code for debug commands or keywords and need to quickly copy the content inside the ` symbols. In the past, I had to carefully select the text wrapped inside... which was quite tedious! I want to directly copy the text inside the inline code So I created this plugin - just place your cursor inside the inline code, and copy with a single keystroke!

Just like this:

demo

It also supports copying bold text, highlighted text, italic text. (If you don't need these features, you can disable them in the settings)

As for heading links, that's another long-standing issue. Default heading links display as a long text string, but I wanted to show only the heading text — using it as the Display Text! So I added this feature to the plugin as well:

copy-heading

It would copy the heading text as the display text:

From:
[[note-name#heading-text]]

To:
[[note-name#heading-text|heading-text]]

The difference looks like this:

heading-compare

This works almost the same as heading links, so I implemented it too!

copy-block-id

🪄 How to Use

  1. The simplest way is to use the default hotkey Ctrl+Alt+C (which you can customize) — just place your cursor inside the specific text and press the hotkey to copy.

  2. The plugin also supports right-click menu operations (which can be disabled in settings if not needed)menu-item

  3. Of course, you can also trigger it by searching for "Contextual Copy" in the command palette — it works the same as the hotkey!

🔧 Settings

General Settings

  • Add to Menu - Add the command to the context menu
  • Show Notice - Display a notification when content is copied
  • Use Heading as Display Text - Use the heading text as display text in links

Format Settings

  • Link Format - The format to use when copying heading links (Markdown link or Wiki link)
    • Markdown link: (text)[link]
    • Wiki link: [[link|text]]

Copy Target Settings

  • Customize Targets - When enabled, you can customize which elements can be copied
    • Enable Inline Code - Enable copying inline code, like code example
    • Enable Bold Text - Enable copying bold text, like bold example
    • Enable Highlighted Text - Enable copying highlighted text, like ==highlight example==
    • Enable Italic Text - Enable copying italic text, like italic example

🛠️ Installation

Currently, the plugin is not yet available in the official store. You'll need to install it using the BRAT plugin.

I'll update this section once it's available in the official store!

🤝 Contribution

Issues and feature requests are welcome! If you'd like to contribute to this project, feel free to submit a PR.

This plugin really improved my workflow, and I hope it can help you too! 🌟