Fix Line Endings on Copy

by KiwiJanus
5
4
3
2
1
Score: 51/100

Description

The Fix Line Endings on Copy plugin ensures that copied text uses the correct line-ending format expected by Windows applications. It automatically converts Unix-style line feeds (\n) to Windows-style carriage return plus line feed (\r\n) only during the copy action, without altering the original markdown files in your vault. The plugin supports copying via manual selections, code block copy buttons, and even handles pop-out windows and no-selection copy behaviour. This is especially useful for users who often paste content into older Windows tools that mishandle line endings. Currently targeted at Windows environments, it runs quietly in the background, improving compatibility without interfering with how you write or store your notes.

Reviews

No reviews yet.

Stats

4
stars
214
downloads
0
forks
205
days
162
days
207
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

7 months ago

Changelog

README file from

Github

Obsidian Line Ending CopyFix

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

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

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Advanced Copy
2 years ago by leschuster
An Obsidian plugin to copy Markdown and transform it into HTML, Anki, or any custom format. Create custom profiles with versatile templates tailored to your workflow.
Advanced Ruby
5 months ago by Peter Yanase
Advanced Ruby is a flexible ruby annotation plugin for Obsidian.
Alt-Click to Copy
2 years ago by Veer Sheth
BackItUp
2 years ago by Hammad Javed
🟣 Quickly make a copy or snapshot of a note in Obsidian.
Callout Copy Buttons
a year ago by Aly Thobani
An Obsidian plugin that adds copy buttons to callout blocks in your notes.
Capitaliser
2 months ago by Emanuel Oliveira
Cycle text capitalisation (lowercase, Capitalise Each Word, UPPERCASE).
Clipboard Manager
9 months ago by Ayush Raj
The clipboard obsidian plugin
Cliplet
6 months ago by namikaze-40p
An Obsidian plugin that serves as a clipboard and snippet manager — your own, separate from the OS clipboard.
Command Line
a year ago by Steven Stallion
Copy command lines from your notes to the clipboard.
Confluence Converter
a year ago by Addo Zhang
An Obsidian Plugin for Confluence
Convert Base64 to PNG
a year ago by Nykko Lin
Converts base64-encoded images to local PNG files for Obsidian.
Copy as HTML
4 years ago by Bailey Jennings
A simple plugin that copies the selected text to your clipboard as HTML
Copy as source
2 years ago by @gapmiss
Select and copy source HTML in reading view in Obsidian.md
Copy document as HTML
3 years ago by mvdkwast
Obsidian plugin: copy document as HTML, including images
Copy Image
2 years ago by Felipe D.S. Lima
Easily copy image to clipboard by right clicking image.
Copy Inline Code
3 years ago by Ondrej Zavodny
Copy Search URL
4 years ago by Carlo Zottmann
A plugin for Obsidian (https://obsidian.md) that adds a menu entry to its search view for copying the Obsidian search URL.
Copy Section
2 years ago by skztr
Obsidian.md plugin adding a Copy button to the top of Headed sections
Enhance Copy Note
5 years ago by kzhovn
Plugin which enhances the copy command for Obsidian.
Enhanced Copy
2 years ago by Mara-Li
A obsidian plugin that allows to copy in markdown in reading view or canvas read-only view, creating profile and transform the text during copy.
Export to HTML
a year ago by kalvn
Export a note as HTML in the clipboard or in a file.
Extract Highlights
5 years ago by Alexis Rondeau
Manage your highlights in Obsidian by easily creating, removing and exporting them.
Filename Emoji Remover
4 years ago by Yüksel Tolun
A simple plugin for the note taking app Obsidian that will rename your files to remove emojis in their names.
Ghost Text
8 months ago by lawrencefeng17
Hanko
a year ago by Telehakke
Obsidian plugin.
Hyphenation
3 years ago by 7596ff
Enables justified text and hyphenation
Image auto upload
5 years ago by renmu123
auto upload image with picgo
Image Embedder
a year ago by Natalie Sumbo
Image To Lskypro
3 years ago by NekouTarou
支持直接上传图片到图床Lsky,基于https://github.com/renmu123/obsidian-image-auto-upload-plugin.git改造。
Image Uploader
5 years ago by Creling
Inline Code Copy
a year ago by Hongchen Lin
JSONifier
5 years ago by Kjell Connelly
Line Commands
2 years ago by charliecm
Adds commands to quickly select, copy, cut, and paste lines under the selection or cursor.
Linkify
4 years ago by Matthew Chan
Lskypro Upload V2
a month ago by 3kk0
Auto upload local images to LskyPro.
Outline Converter
2 years ago by masaki39
Convert outline to continuous text.
Paste as file link
8 months ago by Matthias Büge
This plugin is used to paste a text from the clipboard as a link to an existing obsidian note
Paste From History
2 years ago by Daniel Karakka
Obsidian plugin that adds the ability to paste text from Obsidian's clipboard history.
Paste Image Into Property
a year ago by Nito
Paste Image Rename and Convert
a year ago by iaos
An obsidian plugin that renames pasted images and covert formats
PDF Paste
a year ago by Cormac
Postfix
3 years ago by Bhagya Nirmaan Silva (@bhagyas)
A postfix plugin for Obsidian
Pseudo Mica
a year ago by Alexis C
Pseudo Mica brings native window translucency effects to Obsidian.
Publish URL
2 years ago by Hananoshika Yomaru
copy the publish url to clipboard
Recursive Copy
2 years ago by datawitch
Relative Find
5 years ago by phibr0
Shortcuts extender
6 years ago by kitchenrunner
Plugin for Obsidian: Use shortcuts for input special symbols and changing level of headings without language switching
Show Current File Path
5 years ago by Ravi Mashru
Obsidian plugin to show the file path of the current file in the status bar
Smart Context
a year ago by 🌴 Brian
Sonkil
9 months ago by ohyoungpark
Typing Assistant
3 years ago by Jambo
Typing Assistant is a plugin that improves writing efficiency and provides a user experience similar to that of【Notion】
Underline
5 years ago by Benature
Add underline(`<u>xxx</u>`) with shortcut, and `<center>xxx</center>`, `[[#xxx]]`, `[[#^xxx]]`
WhatsApp export note
a year ago by JoaoEmanuell
Obsidian plugin to export notes for whatsapp
复制图文 (Copy Image Text)
2 years ago by msgk
obsidian插件,复制笔记内容(包括文本和图片)到剪贴板