warp icon indicating copy to clipboard operation
warp copied to clipboard

Copy Paste Behaviour like linux terminal

Open jigneshthummar opened this issue 3 years ago • 17 comments

Discord username (optional)

No response

Describe the solution you'd like?

i just wish default command line behaviour like on selection copy and on right click paste text is something if you can add that will help

ctrl+c and ctrl+v is even better which you guys have but its just my (and probably many others) muscle memory

Is your feature request related to a problem? Please describe.

No response

Additional context

No response

How important is this feature to you?

1 (Not too important)

Warp Internal (ignore) - linear-label:770f6576-d6c0-4e4f-a259-fc64b5156087

None

jigneshthummar avatar Mar 29 '23 23:03 jigneshthummar

Thanks for this feature request!

Please :+1: and subscribe to this request as it helps us gauge interest. We will post any updates here.

dannyneira avatar Mar 30 '23 15:03 dannyneira

I am coming from Linux where select to copy and right-click to paste in the terminal is common. I'd love to see this feature in Warp.

richardhowes avatar Jun 12 '23 13:06 richardhowes

I was surprised to see right-click paste wasn't something Warp at least has an option to configure. I get that Warp is trying to be a reimagined terminal with a complete rethink of the UI from the ground up, so not having this be the default makes sense.

iTerm2 did the same thing with a context menu on right-click by default, but does offer the flexibility to change it. I like having the context menu too, but don't mind it being something I have to hold the Command key and right-click to access (as I have iTerm2 set up).

Right-click to paste in terminal is an essential part of my workflow.

eltoddo avatar Dec 07 '23 20:12 eltoddo

I want to add interest for middle-click. In both Terminal.app and iTerm2 I can highlight text and paste it with a center-click. I can find no such feature in Warp.

cdcasey avatar Dec 13 '23 18:12 cdcasey

I am just statring with Warp terminal and that this feature is missing is a killer for me. I guess I stay with iTerm as long as this isn't available.

AnjaLiebermann avatar Jan 24 '24 09:01 AnjaLiebermann

Now that Warp for Linux is available, this is a must.

This is a feature that every single app on Linux has (with some very rare exceptions), and once you get used to it you cannot really live without it!

adrfantini avatar Feb 23 '24 10:02 adrfantini

Not sure if there's any terminal which pastes directly from right-click, but I've always experienced pasting with middle click on Linux. And that's definitely missing.

Other than that, this seems like a dupe of #2737, and maybe #416 as well.

igorsantos07 avatar Feb 26 '24 01:02 igorsantos07

Not sure if there's any terminal which pastes directly from right-click, but I've always experienced pasting with middle click on Linux. And that's definitely missing.

Other than that, this seems like a dupe of #2737, and maybe #416 as well.

Of course you are correct: Paste is the middle click! And wehen you are used to it being available in a shell, then you really miss it!

AnjaLiebermann avatar Feb 26 '24 16:02 AnjaLiebermann

Hi Folks, I know this doesn't solve the issue of right-click paste, but we've released middle-click paste support in today's release v0.2024.03.12.08.02.

dannyneira avatar Mar 14 '24 22:03 dannyneira

Thanks @dannyneira, Really appreciate this seemingly small but surprisingly important feature for those that use it. Highlight to copy and middle-click to paste is working for me.

One tiny issue though. When you highlight some text from a block, the focus changes to that block, so before you can use middle-click to paste that text into the terminal input, you first have to left-click to change the focus to the terminal input. If the middle-click also changed the focus, that would be nice.

cgoerner avatar Mar 15 '24 00:03 cgoerner

Thank you for implementing the middle-click!!

AnjaLiebermann avatar Mar 15 '24 08:03 AnjaLiebermann

Perfect, works .

A minor comment: in generic terminals just selecting and right after middle works. In Warp you need to change focus on input area to be able to paste. But this is a minor issue and can live with this :)

Edke avatar Mar 15 '24 11:03 Edke

@Edke

A minor comment: in generic terminals just selecting and right after middle works. In Warp you need to change focus on input area to be able to paste. But this is a minor issue and can live with this :)

This was fixed and released today, update your terminal and you will see it working now. See #4609 if you still have issues after the update.

SilentGlasses avatar Mar 22 '24 03:03 SilentGlasses

I have the newest version of Warp and will try to use it now that copy & paste with the middle click should work. Do I have to change any setting to make it work because so far nothing pastes with the middle click? Mind I am a new user to warp because without the middle click I didn't bother to try it out.

Maybe the issue is that I use a Mac with a Logitech mouse, although I have no trouble with middleclick pasting in iTerm2

AnjaLiebermann avatar Apr 03 '24 06:04 AnjaLiebermann

This was fixed and released today, update your terminal and you will see it working now. See #4609 if you still have issues after the update.

Confirming at least for me, it works as expected. Just an left click or drag and select and copy in any of previous blocks and middle click right after will paste into prompt block, thank you !

Edke avatar Apr 03 '24 08:04 Edke

grafik here you see me trying to mark "webflex-1982" and instead "main" is marked. So not only I cannot paste I cannot even mark the text I want to paste. System info: Mac 13.6.3 (22G436), newest Warp, logitech mouse with emulated middle click Does the middle click copy & paste work only in Linux environments?

AnjaLiebermann avatar Apr 03 '24 14:04 AnjaLiebermann

Hi @AnjaLiebermann - mind filing a separate issue for the fact that the selection is on the wrong line, assuming it hasn't been fixed yet?

Going to close out this issue as completed now that middle-click paste is supported on Linux.

There were some other things discussed above that we have separate tracking issues for; please subscribe to and thumbs-up these if you're still waiting on them:

  • https://github.com/warpdotdev/Warp/issues/416 - Support for middle-click paste on macOS
  • https://github.com/warpdotdev/Warp/issues/4627 - Support for right-click paste

vorporeal avatar May 03 '24 14:05 vorporeal