English | 中文文档
- 🧙♂️ 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
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:
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:
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:
This works almost the same as heading links, so I implemented it too!
-
The simplest way is to use a keyboard shortcut (I use
Ctrl+Alt+C
, you can customize it in settings) — just place your cursor inside the specific text and press the hotkey to copy. -
The plugin also supports right-click menu operations (which can be disabled in settings if not needed)
-
Of course, you can also trigger it by searching for "Contextual Copy" in the command palette — it works the same as the hotkey!
- 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
- Link Format - The format to use when copying heading links (Markdown link or Wiki link)
- Markdown link:
(text)[link]
- Wiki link:
[[link|text]]
- Markdown link:
- 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
- Enable Inline Code - Enable copying inline code, like
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!
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! 🌟