Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Fix Line Endings on Copy

kiwijanuskiwijanus229 downloads

Change line endings to CRLF when copying text on Windows (add carriage return).

Add to Obsidian
  • Overview
  • Scorecard
  • Updates4

An Obsidian plugin that ensures content copied from your notes uses platform-appropriate line endings. Currently, it targets Windows users, replacing Unix-style line feeds (\n) with Windows-style carriage return + line feed (\r\n) only when copying text. Your markdown files remain untouched.


✨ Features

  • 🔁 Automatically replaces \n with \r\n on copy if your OS is Windows
  • 🧠 Works with:
    • Manual text selections (Ctrl + C)
    • Code block “copy” buttons
    • Retains obsidian's behaviour where copying without text selected copies the current line
    • Pop-out windows
  • 🔒 Does not modify your stored .md files
  • 💻 Windows-only by default (future support for more platforms is planned)

📦 Installation

From Obsidian: Community Plugins (Recommended)

This plugin is now published to the Obsidian Community Plugins directory. Install it directly from Obsidian:

  • Open Settings → Community Plugins → Browse and search for Fix Line Endings on Copy, then install and enable it.
  • Or open the plugin directly in Obsidian using this link: obsidian://show-plugin?id=line-ending-copyfix.

From GitHub: Manual Installation (Fallback)

  1. Download the latest release from the Releases page
  2. Extract the archive into your vault’s plugins folder <your-vault>/.obsidian/plugins. The folder structure should look like this:
    <your-vault>/.obsidian/plugins/obsidian-line-ending-copyfix/
    ├── main.js
    └── manifest.json
    
  3. Restart Obsidian or reload plugins from Settings → Community Plugins
  4. In Obsidian, open Settings → Community Plugins
  5. In the list of installed plugins, find Fix Line Endings on Copy and enable it.

🧠 Why?

Obsidian uses LF (\n) line endings across all platforms, which is great for consistency.
However, many older Windows applications expect CRLF (\r\n) line endings. Without this, copied content may appear "squished" into a single line.

This plugin solves that by converting line endings only at the time of copying, so your notes stay clean and portable.


⚙️ Future Plans

  • Submit to Obsidian's community plugin directory (approval pending)
  • Add command palette support for manual line-ending conversion
  • Make line-ending style configurable (LF, CRLF, CR)
  • Toggle plugin behavior with a settings UI
  • Add support for various platforms and their line-ending conventions if someone needs it

💬 Feedback / Contributing

Bug reports, feature requests, and pull requests are welcome on the GitHub Repository

79%
HealthExcellent
ReviewSatisfactory
About
Convert Unix-style LF (\n) to Windows CRLF (\r\n) when copying text on Windows to preserve formatting in apps that expect CRLF. Apply conversion to manual selections, code-block copy buttons, current-line copies and pop-out windows without modifying your .md files.
FormattingEditingUtilities
Details
Current version
1.1.1
Last updated
7 months ago
Created
11 months ago
Updates
4 releases
Downloads
229
Compatible with
Obsidian 1.8.10+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Sponsor
Support
Author
kiwijanuskiwijanus
github.com/KiwiJanus
GitHubkiwijanus
  1. Community
  2. Plugins
  3. Formatting
  4. Fix Line Endings on Copy

Related plugins

Easy Typing

Auto format when typing.

List Callouts

Create simple callouts in lists.

Symbols Prettifier

Prettify the symbols with actual symbols you commonly type, like arrows.

Smart Typography

Convert quotes to curly quotes, dashes to em dashes, and periods to ellipses.

Number Headings

Automatically number or re-number headings.

Markdownlint

Use markdownlint to make the contents of your files more consistent.

Advanced Tables

Improved table navigation, formatting, and manipulation.

Vertical Tabs

Offer an alternative view that displays open tabs vertically, allowing users to group and organize tabs for a better navigation experience.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Outliner

Work with your lists like in Workflowy or Roam Research.