[GH-ISSUE #1717] Paste should replace Windows style endlines with Unix style endlines #1007

Open
opened 2026-02-27 00:01:52 +03:00 by kerem · 1 comment
Owner

Originally created by @vimlet on GitHub (May 29, 2020).
Original GitHub issue: https://github.com/electerm/electerm/issues/1717

Electerm version:

v1.3.34

Operating system(linux, macos, or windows7/8/10?):

Windows 10

Expected Behavior

Paste should replace Windows style \r\n endlines with Unix style endlines \n to maintain original format.

Current Behavior

Electerm makes copy and paste in terminal text editor line nano tedious.

Possible Solution

Implement a middleman pastebin that replaces with a simple regex \r\n with \n .
This could be togglable in Electerm preferences.

Originally created by @vimlet on GitHub (May 29, 2020). Original GitHub issue: https://github.com/electerm/electerm/issues/1717 ## Electerm version: v1.3.34 ## Operating system(linux, macos, or windows7/8/10?): Windows 10 ## Expected Behavior Paste should replace Windows style **\r\n** endlines with Unix style endlines **\n** to maintain original format. ## Current Behavior Electerm makes copy and paste in terminal text editor line nano tedious. ## Possible Solution Implement a middleman pastebin that replaces with a simple regex **\r\n** with **\n** . This could be togglable in Electerm preferences.
Author
Owner

@zxdong262 commented on GitHub (Jun 8, 2020):

@vimlet Do you mean for local session with powershell? Are you using a custom local terminal app in settings. For remote sessions it is already replaced \r\n with \n.

<!-- gh-comment-id:640399174 --> @zxdong262 commented on GitHub (Jun 8, 2020): @vimlet Do you mean for local session with powershell? Are you using a custom local terminal app in settings. For remote sessions it is already replaced `\r\n` with `\n`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#1007
No description provided.