warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
21.19k stars 362 forks source link

copy-paste works only in warp, can not copy to/from another program/window/terminal #4314

Open asacha-ru opened 7 months ago

asacha-ru commented 7 months ago

Discord username (optional)

No response

Describe the bug

I an not copy/paste any selected text from Warp to another program, nor from another window into Warp

To reproduce

Select any text in Warp, right-click->Copy (or Ctrl+Shift-C), switch to a different window (say, gedit) and try to paste the copied text. The old contents of clipboard is pasted, as if nothing was copied inside Warp. The same problem when trying to copy text from gedit/Firefox/GNOME_Terminal into Warp

Expected behavior

Copy/Paste in Warp should use the system clipboard, allowing copying text to/from other programs

Screenshots

No response

Operating system

Linux

Operating system and version

Ubuntu 20.04 with desktop Unity 2.3ubuntu0.3

Shell Version

bash 5.0.17(1)-release

Current Warp version

v0.2024.02.20.08.01.stable._02

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?

Yes, this issue prevents me from using Warp daily.

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

mcrislip commented 7 months ago

Exact same issue, using ubuntu 23.10 and gnome 45.2. Voyager distro

dannyneira commented 7 months ago

hey folks, this is a known issue, especially when using Wayland with Warp, Also the default copy-paste shortcuts are CTRL-SHIFT-C/V, but those can be changed In Settings > Keyboard Shortcuts. Hope this helps! https://docs.warp.dev/features/keyboard-shortcuts

Also, you can try to download this preview version of Warp and see if it fixes your issues:

deb rpm pacman appimage

If using Wayland, you can enable Wayland support by setting the WARP_ENABLE_WAYLAND envar (e.gWARP_ENABLE_WAYLAND=1 warp-terminal).

We're working on the Wayland issues so we appreciate your patience.

brightdroid commented 7 months ago

Copy paste does work with the new build but only inside the app or when copy using keyboard shortcut.

Inside vim it still does not copy using mouse selection and keyboard shortcuts.

alokedesai commented 7 months ago

Hey @brightdroid, we're actively working on supporting copy/paste when using mouse selection. We expect to have a fix out soon for this. Thanks for your patience!

oakbox commented 7 months ago

Tried the 'WARP_ENABLE_WAYLAND=1 warp-terminal' fix and no joy. Linux Mint (which is based on Ubuntu). In my terminal, I see this message fly by when attempting to paste into the command window:

01:10:47 [INFO] dispatching typed action: UnhandledModifierKey("ctrl-v")

No idea if that is helpful information.

alokedesai commented 7 months ago

Hey @oakbox, the shortcut to paste in Warp is ctrl-shift-v. This matches the behavior of most terminals on Linux; we can't use ctrl-v since it would conflict with a shortcut that could be sent to a running command within your shell. You can reconfigure this in settings.

adamdry commented 7 months ago

Copying and pasting was working before I updated to the latest version of warp (v0.2024.03.12.08.02.stable_01) (I had to manually type that as copying doesn't work haha)

I'm on Ubuntu 20.04.1

I always use the Ctrl+Shit+C/V key combo as I'm used to the default term in Ubuntu which has the same shortcut keys.

For me personally not being able to C&P makes Warp something I can't use. I'll switch back to native term for now. Hope this is re-fixed asap!

Alternatively can I roll back my Warp update? @alokedesai :pray:

alokedesai commented 7 months ago

Hey @adamdry, thanks for flagging this to us. Could you share the output of your Warp logs when you press ctrl-shift-c or ctrl-shift-v so we can debug further?

adamdry commented 7 months ago

warp.log

Yeah sure! I can make a quick loom to show the issue as well if that's helpful @alokedesai ?

alokedesai commented 7 months ago

Yes, please. Thanks @adamdry!

adamdry commented 7 months ago

https://www.loom.com/share/616b66c6f571419896b7562f31ae6346

Hopefully this is useful :smile: @alokedesai

adamdry commented 6 months ago

@alokedesai this is fixed for me now! I'm not sure if it was upgrading to the latest version of warp v0.2024.03.19.08.01.stable_01 or if a restart fixed it, but it's working fine now.

Thanks for your attention.

oakbox commented 6 months ago

Same here, the latest update has enabled the 'middle mouse button paste', very excited to try out Warp as my daily driver to see if the reality lives up to the hype of my coworkers :)

alokedesai commented 6 months ago

@adamdry Apologies for not following up earlier, but yes that's correct. Thank you for flagging this to us.!