warp icon indicating copy to clipboard operation
warp copied to clipboard

Linux: middle click paste isn't working

Open guy-borderless opened this issue 2 years ago • 64 comments

Discord username (optional)

No response

Describe the bug

When pressing the middle mouse button on top of the warp terminal no paste action of the selected text is performed. This is a convention and default behavior in linux.

To reproduce

select text in an app other than warp middle click on top of warp

Expected behavior

selected text is pasted

Screenshots

No response

Operating system

Linux

Operating system and version

Manjaro Gnome

Shell Version

No response

Current Warp version

No response

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

No

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

guy-borderless avatar Feb 25 '24 15:02 guy-borderless

I've just started using Warp in Linux (it's a lovely terminal emulator), and I've been finding this quite frustrating!

It's both ways: Select text in another app and middle-click in Warp, or select text in Warp and middle-click in another app. Also, this doesn't work: select text in Warp and middle-click in Warp.

paddylandau avatar Feb 25 '24 15:02 paddylandau

I've just started using Warp in Linux (it's a lovely terminal emulator), and I've been finding this quite frustrating!

It's both ways: Select text in another app and middle-click in Warp, or select text in Warp and middle-click in another app. Also, this doesn't work: select text in Warp and middle-click in Warp.

I've opened one for that: #4328

guy-borderless avatar Feb 25 '24 15:02 guy-borderless

Looks like a dupe of #2853 (although talk there is about pasting with right-click???), and also of #4295, #2737 and the original #416 (which could be Mac-only, given the age).

You know... searching the issue board is quite helpful sometimes haha

igorsantos07 avatar Feb 26 '24 01:02 igorsantos07

+1 for this. This is implemented in most of the linux terminals, therefore Warp for Linux users highly depend on this.

ZsBT avatar Feb 28 '24 15:02 ZsBT

Hi all, thanks for you your patience here. We are currently looking into this and hope to have this fixed soon.

alokedesai avatar Feb 29 '24 18:02 alokedesai

Hey @alokedesai will the fix come with a paste action in the menu ( screenshot below ) ? if not can you add it? Thanks

Also, Clear output could be in there as well

image

Yummy-Yums avatar Feb 29 '24 19:02 Yummy-Yums

@Yummy-Yums Mind filing another issue for this? I'd like to keep this issue focused on supporting middle click paste. Thank you!

alokedesai avatar Feb 29 '24 22:02 alokedesai

Please don't limit this feature to be on Linux only. Us Mac users also use middle click paste in our terminals.

jeremyronking avatar Mar 06 '24 13:03 jeremyronking

For Mac users make it a configurable option, to also support paste on right click.

I'm daily connecting to remote systems, running windows VDI and use terminal programs like WinSSHterm. There I can enjoy the feature of copy on select and paste with my Mac mouse right button.

It's so efficient, I've almost given up on this request in WARP, now when it's looked at, please make it configurable with both copy on select and paste with right button.

Thanks for all hard work!

See this post as a discussion I found about copy/paste behaviour with mouse only.

https://apple.stackexchange.com/questions/14163/how-to-configure-terminal-to-be-putty-like-when-it-comes-to-copy-paste-with-mo/14165#14165

in iTerm2 go to "Options -> General -> install test-release updates (or something like this)", check for updates, install last test-release (1.0.0.20130622 by now) and get new option "Right button single click -> Paste from Selection" in Options -> General -> Pointer.

rlinq avatar Mar 07 '24 04:03 rlinq

The original poster said this did not prevent them from using warp.

It does block mine. It's a blocker for me.

ablundgren avatar Mar 08 '24 01:03 ablundgren

Blocker for me too.. I have been using on Mac for a bit and was super excited for Linux as that is my main personal OS but I can't really use it if it does not accept middle click paste. Why? Two reasons:

  1. I have to type out the entire thing I need to paste
  2. It takes extra key strokes to paste other wise... ctrl+shift+v

SilentGlasses avatar Mar 08 '24 03:03 SilentGlasses

Hey everyone! This issue will be fixed in the next release! Middle-click paste will now work for users on both Linux and macOS. Thanks for taking the time to file this issue and upvote/comment.

If your system has a primary clipboard, then Warp will use that. For macOS and older versions of Wayland that don't have a primary clipboard, Warp will use the default clipboard. If it doesn't work, double check that the "Copy on select" setting is enabled (this should be enabled by default). You can check this by visiting Settings > Features > General > Copy on select and making sure the toggle is on.

abhishek-pandya avatar Mar 08 '24 22:03 abhishek-pandya

@rlinq Do you mind filing a separate issue for supporting right-click to paste? We want to keep this issue focused on middle-click. Thanks so much!

abhishek-pandya avatar Mar 08 '24 22:03 abhishek-pandya

@abhishekp106 is it implemented that selected text is copied to the primary clipboard as well? This is important for middle-click pasting in other apps as well as other things.

guy-borderless avatar Mar 13 '24 12:03 guy-borderless

@abhishekp106 is it implemented that selected text is copied to the primary clipboard as well? This is important for middle-click pasting in other apps as well as other things.

This report is for Linux. Middle-click merely copies the currently-selected text to the target; it doesn't, and shouldn't, place it into the clipboard. (If you need that sort of functionality, you need a desktop environment that supports that or, for something like GNOME, a suitable extension.) It should place selected text into the clipboard only on an explicit copy (Shift+Ctrl+C or right-click+Copy).

paddylandau avatar Mar 13 '24 12:03 paddylandau

What version is supposed to fix this? v0.2024.03.05.08.02.stable_01 here and this is not working.

poldap avatar Mar 13 '24 14:03 poldap

Hey @poldap, this will be available in the next release of Warp, which will be released tomorrow.

alokedesai avatar Mar 13 '24 14:03 alokedesai

@abhishekp106 is it implemented that selected text is copied to the primary clipboard as well? This is important for middle-click pasting in other apps as well as other things.

This report is for Linux. Middle-click merely copies the currently-selected text to the target; it doesn't, and shouldn't, place it into the clipboard. (If you need that sort of functionality, you need a desktop environment that supports that or, for something like GNOME, a suitable extension.) It should place selected text into the clipboard only on an explicit copy (Shift+Ctrl+C or right-click+Copy).

@paddylandau , we were referring to something else. the primary clipboard is used for selected text, not copied text. when you select text and copy it the primary and the secondary (used for copy paste) clipboards are equal. middle click however uses the primary clipboard

guy-borderless avatar Mar 13 '24 15:03 guy-borderless

Hey Folks, we've released middle-click paste support in today's release v0.2024.03.12.08.02.

Closing as resolved, but please let us know of any issues with the improvement.

dannyneira avatar Mar 14 '24 22:03 dannyneira

@dannyneira do I have to activate it somewhere? Warp version: v0.2024.03.12.08.02.stable_01 Ubuntu 22.04 LTS Not working...

[UPDATE]

Its working if I select the text, click the terminal prompt, and hit middle click.

The original experience in Ubuntu terminal is not having to click in the prompt to get the middle click pasting there. It will always paste there.

Thanks for the upgrade, we're pretty close!

RicHincapie avatar Mar 15 '24 03:03 RicHincapie