Copy text using trackpad - issues

Sometimes, when I copy text in Core Shell using the trackpad, then paste elsewhere in Core Shell, I get whitespace pasted at the end of each line. I can reduce the whitespace by reducing the terminal window width when I copy - and (bizarrely) it only happens sometimes.

It is really annoying - when I know I have much copying and pasting to do I use one of your competitor's products and it makes me feel dirty!

Thanks for listening.

I just want to flag how much I agree with this being a really big annoyance.

I simply can't copy-and-paste from things like vi when they are running in Core Shell without getting all that white space. The same was not true with CoreSSH, nor is it true when I SSH from the Terminal. It's just Core Shell that behaves like this.

vi? Hardcore! I've tried and tried to learn the commands but always end up back in nano lol

Thanks a lot for the complain, I acknowledge this is a known issue.

Could you please give me repro steps? So that I can confirm we're talking about the exact same problem.

I'll do this as soon as I get time, but probably not before Friday afternoon, sorry. Busy busy.

Thank you, I'll waiting.

@bart.busschots Do you have time to give me a repro steps? Thank you.

Hi.

  1. Download this file: https://www.dropbox.com/s/agnkm8aau9mv02i/example.py?dl=0
  2. Put onto a machine you can SSH into.
  3. Open in nano.
  4. Highlight all the code by tap-dragging with touchpad.
  5. Move cursor to bottom of file with cursor keys.
  6. Cmd-V to paste.
  7. All pasted lines have whitespace at the end.

Hope this helps!

Thanks a lot for the steps, will try to fix it ASAP.

Yes, sure, as I've said, it's a known issue :slight_smile:

Sorry I wasn't able to get back to you until now.

You have steps already, but in case it's helpful, I run into this issue with vi rather than nano/pico, and it's very easy to reproduce:

  1. SSH into any Linux machine
  2. cat /etc/hosts > demo.txt; vi demo.txt
  3. Drag to select the text, copy
  4. Paste into text editor of choice and notice all the white space
  5. :q to exit vi, then optionally rm demo.txt to clean up

I also hit this bug with other commands, but not all commands, for example, selecting multiple lines of output form ls -1 does not result in trailing white space in the clipboard.

Thank you Bart, will try to fix it in next update.

With version 1.7.2, trailing spaces in each line will be removed on copying terminal text.

Please do the upgrade and give it a try, let me know if it still problematic.

Awesomeness!

Thanks v much.

Just tested and this works perfectly - thanks so much for improving my workflow!

J :smile: