Warp icon indicating copy to clipboard operation
Warp copied to clipboard

Copying text from applications other than Warp does not apply to the Warp clipboard

Open vihangatheturtle opened this issue 1 year ago • 29 comments

Discord username (optional)

chikeen_

Describe the bug

When copying a command from the browser (Firefox, or any other application other than Warp) the text is copied to the clipboard correctly (can be pasted in another application) but is not available in Warp using ctrl+shit+v or (my remapped keybind: ctrl+v).

Copying text from within Warp does update the clipboard within Warp, however, this does not affect any other applications.

To reproduce

Copy from external app to Warp:

  1. Open any other application
  2. Select and copy some text (right-click and copy or use keybinds)
  3. Try paste the copied text into the Warp terminal
  4. Nothing is pasted (apart from text previously copied within Warp if any is available)

Copy from Warp to external app:

  1. Select and copy text from the Warp terminal
  2. Attempt to paste copied text in another app (using right-click menu or keybinds)
  3. Nothing is pasted (or previous global clipboard is pasted)

Expected behavior

Copying text from other applications should synchronise with the clipboard used by Warp (and from Warp to any other app)

Screenshots

No response

Operating system

Linux

Operating system and version

Ubuntu 22.04.3 LTS x86_64

Shell Version

5.1.16(1)-release (x86_64-pc-linux-gnu)

Current Warp version

v0.2024.02.20.08.01.stable_01

Regression

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

Recent working Warp date

No response

Additional context

Not sure if related but warp also had issues starting the default browser (check #4245).

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

vihangatheturtle avatar Feb 22 '24 23:02 vihangatheturtle

Hey @vihangatheturtle do you mind posting a screengrab video of the issue? I'm not seeing the same on ubuntu, even with CTRL-V mapped to paste.

Are you using Wayland or X11? Also, please send us your logs found in ~/.local/state/warp-terminal/warp.log. We recommend quitting Warp, deleting the log file, restarting Warp (for a fresh set of logs), doing the paste action, and then attaching that file.

dannyneira avatar Feb 23 '24 00:02 dannyneira

Sure, here's the screen recording of the issue: https://github.com/warpdotdev/Warp/assets/43118457/e8f483ec-1207-4eb5-9a6c-cb0b142b3b57

And the logs: warp.log

Using X11

vihangatheturtle avatar Feb 23 '24 00:02 vihangatheturtle

@vihangatheturtle I encountered the same issue. However, after I restarted the Warp app, it started working for me.

melagiri avatar Feb 23 '24 16:02 melagiri

@vihangatheturtle I encountered the same issue. However, after I restarted the Warp app, it started working for me.

Oh right, I have restarted it multiple times but not caused copy pasting to start working.

However, I did install Warp on my laptop (using same install method: .deb file) and it is working correctly on there, will send some system info and logs from the laptop when I am next using it.

vihangatheturtle avatar Feb 23 '24 18:02 vihangatheturtle

I just installed Warp on Ubuntu 22.04 and it does not provide the "Paste" option either, nor is CTRL-SHIFT-V working.

Edit - From the command pallet it pasted. The Right-Click menu does not have it as an option though.

Dartellum avatar Feb 24 '24 04:02 Dartellum

Not sure if related, but from the command pallet I see 2 options for Paste image

vihangatheturtle avatar Feb 24 '24 09:02 vihangatheturtle

Not sure what has caused this, maybe the new update, but it seems to be working fine for me now. Seems to have fixed after I finally closed a bunch of Firefox processes from #4245?

Edit: I say maybe the new update since it still wasn't working directly after updating

vihangatheturtle avatar Feb 24 '24 14:02 vihangatheturtle

I am on linux (ubuntu), and the same thing still happens. I can`t paste or even see the paste option when using the right button of the mouse. I can copy content inside warp and paste it. Also, I click "Copy Command" but It doesn't seem to work either

david-zamora-minderest avatar Mar 07 '24 11:03 david-zamora-minderest

Experiencing these issues as well but happens randomly

fedealconada avatar Mar 18 '24 17:03 fedealconada

Copy and paste is not working for me. Using latest version.

manjurulhoque avatar Mar 19 '24 13:03 manjurulhoque

After an update the last week, I can finally copy and paste. It's not a problem anymore. I posted here 2 weeks ago, you can find my post above. Thank you

david-zamora-minderest avatar Mar 20 '24 08:03 david-zamora-minderest

Also experiencing this. I'm on version 0.2024.03.19.08.01.stable_01 on Ubuntu 22.04. A restart helped.

peterjaap avatar Mar 26 '24 19:03 peterjaap

Also happening for me on warp 0.2024.03.26.08.02.stable_01 on Kubuntu 23. I can copy stuff from warp and paste it inside warp. But cannot paste it outside of warp. I can also copy stuff from outside but cannot paste it to warp. It really feels like it's using a separate clipboard than my system.

Edit: Updated to v0.2024.03.26.08.02.stable_01 and restarted warp fixed the issue for now

jmaheux avatar Mar 28 '24 18:03 jmaheux

I was using warp just fine on Ubuntu 24.04, copy-paste working without problem.

Then I started a background process of an Android Studio via a shell script. I killed the Android Studio via a GUI "X", and when I went back to warp, I could no longer copy-paste.

It is almost like the warp "clipboard" went with the Android Studio process, and was lost to the Warp process. And Warp does not realize that something is wrong - even after a Warp app restart or even a log out and log back in.

wolfe719 avatar May 11 '24 12:05 wolfe719

got the same issue using CopyQ on ubuntu I was planning on fully migrating to warp but copyq is essential for my workflow

hazem-abulhassan avatar May 13 '24 09:05 hazem-abulhassan

For me, uninstalling Warp and reinstalling Warp fixed the issue.

Annoying, but the pleasure of using Warp is too tempting! :)

wolfe719 avatar May 14 '24 10:05 wolfe719

@wolfe719 unfortunately that didn't help me..

peterjaap avatar May 16 '24 19:05 peterjaap

From my experience, I've only seen this happen when pasting text to hidden lines on the terminal, mainly copying my auth token for Github from Obsidian, Kate, and Sublime and pasting into Warp when first doing anything Git. Ctrl+Shift+V and Ctrl+V do not work. I have to open up Konsole just to enter my password/auth token. That said, I haven't tried middle-mouse-button-click yet.

Kubuntu 23.10, X11, fish 3.6.1.

erroreyes avatar May 31 '24 21:05 erroreyes

I just ran into this issue again and I can confirm that clicking middle button to paste did not work either.

erroreyes avatar Jun 01 '24 20:06 erroreyes

well i'm late to the party but this is actually happening to me also

ssh30 avatar Jun 19 '24 15:06 ssh30

This is happening to me since I installed Warp a few months back. The temp "fix" I could find was to keep the Warp updated. I'm on Ubuntu (Linux) and once there is that "Update Warp" notification on title bar, this issue rise up. Once I update the app, it's fixed somehow. I really don't know what sorcery is this.

siddhant-sar avatar Jun 21 '24 11:06 siddhant-sar

I encountered this issue where copy and paste work fine after reinstalling, but the problem reoccurs upon restarting my laptop.

Rasyidannas avatar Jun 25 '24 12:06 Rasyidannas

From my experience, I've only seen this happen when pasting text to hidden lines on the terminal, mainly copying my auth token for Github from Obsidian, Kate, and Sublime and pasting into Warp when first doing anything Git. Ctrl+Shift+V and Ctrl+V do not work. I have to open up Konsole just to enter my password/auth token. That said, I haven't tried middle-mouse-button-click yet.

Kubuntu 23.10, X11, fish 3.6.1.

I was able to paste this time with v0.2024.06.18.08.02.stable_04. I'll keep monitoring.

erroreyes avatar Jun 25 '24 19:06 erroreyes

If it helps i'm on Ubuntu and warp v0.2024.06.18.08.02.stable_04 and I can paste into the terminal but I cannot paste into any editor e.g nano, vi. I've taken to using a normal terminal just for editing files which is no fun.

Screenshot from 2024-06-27 08-44-59

bsautner avatar Jun 27 '24 12:06 bsautner

@bsautner do you also have jumping lines when you yank lines out of a file from nano/pico/vi? More specifically; the bottom menu comes halfway up the screen.

peterjaap avatar Jun 27 '24 12:06 peterjaap

@bsautner do you also have jumping lines when you yank lines out of a file from nano/pico/vi? More specifically; the bottom menu comes halfway up the screen.

no @peterjaap - normal behavior otherwise.

bsautner avatar Jun 27 '24 12:06 bsautner

@bsautner do you also have jumping lines when you yank lines out of a file from nano/pico/vi? More specifically; the bottom menu comes halfway up the screen.

I lose focus each time I paste using middle-click while using nano, pico, or vi. It's quite annoying that I have to left-click to continue working.

andrejskuidins avatar Aug 09 '24 08:08 andrejskuidins

I'm also facing the same issue copy & paste things are working within warp context only.

anooptiwari2402 avatar Aug 14 '24 16:08 anooptiwari2402