Easy Copy

by Moy
5
4
3
2
1
Score: 57/100

Description

Category: Productivity Tools

The Easy Copy plugin simplifies the process of copying specific types of content within Obsidian by smartly detecting the context around the cursor. It allows users to instantly copy inline code, bold text, highlighted sections, italicized words, block IDs, and heading links without manually selecting text. Users can fine-tune which types of content to target and adjust link formats for copied headings.

Reviews

No reviews yet.

Stats

48
stars
15,183
downloads
6
forks
553
days
2
days
17
days
21
total PRs
2
open PRs
1
closed PRs
18
merged PRs
31
total issues
4
open issues
27
closed issues
78
commits

Latest Version

17 days ago

Changelog

1.9.1 - 2026-10-13

🐛 Fixed

  • Redundant alias in file links (#48): Copy current file link (and contextual copy on an empty line set to File link) no longer produces [[Filename|Filename]] in wiki format. When there is no frontmatter display text (or it equals the filename), the alias is omitted and a clean [[Filename]] is copied — matching Obsidian's native generateMarkdownLink behavior and the paste-resolution path. Markdown format is unaffected, and a frontmatter title is still used as a meaningful alias.

🐛 修复

  • 文件链接的冗余别名(#48):复制当前文件链接(以及空行上下文复制设为「文件链接」时)在 Wiki 格式下不再生成 [[Filename|Filename]]。当没有 frontmatter 显示文本(或其恰好等于文件名)时,将省略别名,复制干净的 [[Filename]]——与 Obsidian 原生 generateMarkdownLink 及粘贴解析路径的行为一致。Markdown 格式不受影响,frontmatter 标题仍会作为有意义的别名使用。

1.9.0 - 2026-10-13

✨ New Features

  • Custom regex copy targets: create named copy rules with your own regular expressions (flags, capture group, description, enable toggle) to copy text in syntax the built-in targets don't cover. The rule editor validates the regex as you type and can copy a ready-to-use AI prompt to help generate one.
  • Reorderable copy targets: built-in and custom targets now share one drag-to-reorder list under Settings → Copy targets → Formatted text; the order is the matching priority, and Markdown links are included. Each row has its own enable toggle — the old "Customize targets" master switch was removed, the row toggles now always apply.
  • Short same-file heading links: with Resolve link path on paste enabled, pasting a copied heading link within the same note now always produces the short [[#Heading]] form — matching Obsidian's native behavior — regardless of the heading display-text setting.
  • Full-block display text for block links (#40): new opt-in setting Use the whole block as display text takes the block link alias from the entire (multi-line) block — soft-wrapped continuation lines joined with spaces — instead of a single line. Display-text cleanup is improved in both modes: 2^10-style caret expressions are no longer mistaken for block IDs, list markers are only stripped at line starts, and pipes are removed so they can't truncate wiki aliases.

🐛 Fixed

  • Unicode block display text (#41): block link aliases now apply the word limit to space-separated text containing Latin Extended letters, Cyrillic, or Unicode punctuation instead of truncating it by character count. CJK text keeps the character limit, and character truncation no longer splits surrogate pairs (e.g. emoji).

✨ 新功能

  • 自定义正则复制对象:可用自定义正则表达式(标志、捕获组、说明、启用开关)创建命名复制规则,复制内置对象不支持的文本格式。规则编辑器支持正则实时校验,并可复制即用型 AI 提示词辅助生成正则。
  • 复制对象排序:内置与自定义对象合并为「设置 → 复制目标 → 格式文本」下的一个可拖拽排序列表,顺序即匹配优先级,Markdown 链接也参与排序。每行自带启用开关——原「自定义复制对象」总开关已移除,行开关始终生效。
  • 同文件标题短链接:启用「粘贴时解析链接路径」后,在同一笔记内粘贴复制的标题链接时,始终生成 [[#Heading]] 短形式(与 Obsidian 原生行为一致),不再受标题显示文本设置影响。
  • 块链接显示文本可取整个块(#40):新增可选设置「显示文本取整个块」,块链接别名改为取自整个(多行)块——软换行的后续行用空格拼接——而非单独一行。两种模式下显示文本清理均有改进:2^10 这类上标记号不再被误当作块 ID 剥离,列表前缀仅在行首移除,| 会被清除以避免截断 wiki 别名。

🐛 修复

  • Unicode 块显示文本(#41):包含拉丁扩展字母、西里尔字母或 Unicode 标点的空格分词文本,现在会正确采用单词数上限,不再被错误地按字符截短。CJK 文本仍使用字符数上限,按字符截取时也不会再拆断代理对(如 emoji)。

README file from

Github

Easy Copy - Make Copying Smart and Simple!

English | 中文文档

Obsidian Downloads Release GitHub Issues Stars

Easy Copy can smartly copy content based on your cursor position (e.g. code text inside inline code, without formatting symbols).
Besides, it also supports quickly generating and copying links to headings or paragraphs(blocks) in your notes.

✨ Features

  • 🚀 Easy to Use - You only need one command to complete various copy operations
  • 🧙‍♂️ 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 linkss, and heading links
  • 📝 Auto Generate - Automatically generate heading links, or generate a new block ID for the current paragraph and copy the block link
  • 🌐 Multilingual Support - Full support for English, Simplified Chinese, and Traditional Chinese

🤔 Why use this plugin

📝 Copy the text inside Inline Code

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)

[!IMPORTANT] Due to the limitations of Obsidian plugins, the default does not assign a shortcut key,
you need to assign a shortcut key in Obsidian's keyboard settings for the "Easy Copy: Contextual Copy" command.
I personally recommend using Ctrl+Alt+C.

Even more surprisingly, if you place the cursor on the heading line and press the same "Contextual Copy" shortcut key, you can copy the internal link pointing to the heading!

copy-heading

[!TIP] You can choose between markdown link format ([]()) and wiki link format ([[]]) in the plugin settings.

Not only that, it will use the heading text as the display text, effectively reducing the length of the link.

From [[Note Name#Heading Text]] to [[Note Name#Heading Text|Heading Text]], the text content is longer, but the visual effect is shorter!

The difference looks like this:

heading-compare

If the current text contains an existing block link, the plugin will copy the link pointing to this block, just like it does with the title.

After version 1.2.0, the plugin also supports automatically generating block links for the current text (you need to enable the Auto generate block ID option in the settings):

When there is no content at the cursor position to copy, it will automatically generate a random block ID for the current paragraph and copy the link to the clipboard.
Moreover, the copied link will use the text's summary as the display text, so you won't have to deal with the confusing random characters of the Block ID!

copy-block-id

If you prefer, you can also enable "Manually enter Block ID" in the settings (only letters, numbers, hyphens (-) and underscores (_) are supported).

🪄 How to Use

  1. Basic Usage: Place the cursor at the position you want to copy, and use the Contextual Copy command to copy.
  2. You can also assign a hotkey, and press it to copy with one click. hotkey
  3. The plugin also provides a right-click menu operation menu-item

🔧 Settings

General

  • Add to Menu - Add the command to the right-click menu.
  • Show Notifications - Show a notification when content is copied.
  • Use Title as Display Text - Use the title text as the display text in the link.

Format

  • Link Format - The format used when copying title links (Markdown link or Wiki link).
    • Markdown link: (Display Text)[Link]
    • Wiki link: [[Link|Display Text]]

Block ID

  • Auto-generate Block ID - When enabled, if there is no content at the cursor position to copy, it will automatically generate a random block ID for the current paragraph and copy the link to the clipboard.
  • Manually enter Block ID - When enabled, you can manually enter a new block ID (in this case, the display text will directly use the text you entered)

Copy Target

  • Custom Copy Target - When enabled, you can customize which elements can be copied, allowing you to exclude specific types (such as bold or italic text) to avoid copying them.

🛠️ Installation

The plugin is now available in the community plugins list, you can search for "Easy Copy" to install it.

(Alternatively, you can also use the BRAT plugin to install it)

🤝 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! 🌟

❤️ More from Moy

If you appreciate my plugin design and quality, check out my other Obsidian plugins:

Plugin Description Stats
Yearly Glance See your whole year's key events at a glance. Obsidian Downloads GitHub Stars
Better Links The link popover editor you absolutely need. Obsidian Downloads GitHub Stars
Style Context Set your Obsidian background to any image in your vault. Obsidian Downloads GitHub Stars
Colorful Highlights Enhanced colorful highlights with multiple styles and custom colors. Obsidian Downloads GitHub Stars
Harbor Tab A beautiful new tab page with quick file search and creation. Obsidian Downloads GitHub Stars
Single Choice Property Keep selected list properties to only one value. Obsidian Downloads GitHub Stars

See all my plugins on my Obsidian Community page.

Friend plugins I contributed to: Note Toolbar & Typify ❤️

☕ Support

If you like Easy Copy, consider buying me a coffee on Ko-fi ☕