Pasting multiline text ignores newlines in joe(1) editor

Open
#2,322 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
macos, rust, zsh
Domain
cli, desktop

Research direction

No source file or test is named. First reproduce the paste in Warp using joe with the provided CocoaPods example, then compare it with macOS Terminal or iTerm2; investigate the paste-handling entry point and existing tests. Done means multiline clipboard text retains its newlines in Warp as it does in the comparison terminals.

Written by the indexing model from the issue text.

Description

area:shell-terminal bug ready-to-implement triaged
Discord username (optional)

No response

Describe the bug

I copied several lines of podfile text from a Cocoapods webpage, and CMD-V pasted it into my joe(1) editor running in Warp.

It was pasted as a single line - been using joe for decades on linux and mac with multiple terminals, never seen this behavior.

Performing the same paste into iTerm2 and macOS Terminal instances running joe(1) kept the newlines.

To Reproduce
  1. $brew install joe
  2. $joe test.txt
  3. Copy a few lines of code sample from https://guides.cocoapods.org/using/the-podfile
  4. Paste into joe editor window - will be pasted as a single line of text, ignoring newlines
  5. Repeat using joe in MacOS terminal or iTerm2 - should be pasted as multiple lines as copied
Expected behaviour

Expect to see multiline text when pasted, but see single line instead

Screenshots

In this screenshot, the same text has been pasted from a webpage into the joe editor running in Warp (green) and iTerm2 (black).

The Warp Terminal removes the newlines, iTerm2 and Terminal do not.

Screenshot 2022-12-08 at 5 19 28 PM

Operating System

MacOS

OS Version

13.0.1

Shell Version

zsh 5.8.1 (x86_64-apple-darwin22.0)

Warp Version

v0.2022.11.29.08.03.stable_07

Additional context

No response

Does this block you from using Warp daily?

Yes

Warp Internal (ignore): linear-label:b8107fdf-ba31-488d-b103-d271c89cac3e

None

Dominant language
Rust
Stars
65.1k
Forks
5.6k
PR merge metrics
PR metrics pending

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from warpdotdev/warp

All issues in warpdotdev/warp

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.