hyper
hyper copied to clipboard
Copy / paste sometimes does not respect line endings
- [ ] I am on the latest Hyper.app version
- [x] I have searched the issues of this repo and believe that this is not a duplicate
- OS version and name: Windows 10 18.03
- Hyper.app version: 2.0.0 (stable)
- Link of a Gist with the contents of your .hyper.js:
- Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere):
-
The issue is reproducible in vanilla Hyper.app:
Is Vanilla
Issue
The issue can basically be summed up with this:
root@ubuntu-1804:~# ll /home/tom/total 164drwxr-xr-x 18 tom tom 4096 May 27 02:29 ./
drwxr-xr-x 3 root root 4096 May 23 13:20 ../
-rw------- 1 tom tom 828 May 25 15:16 .bash_history
-rw-r--r-- 1 tom tom 220 May 23 13:20 .bash_logout
-rw-r--r-- 1 tom tom 3771 May 23 13:20 .bashrcdrwx------ 13 tom tom 4096 May 23 14:34 .cache/drwx------ 12 tom tom 4096 May 23 14:21 .config/drwxr-xr-x 2 tom tom 4096 May 23 13:24 Desktop/drwxr-xr-x 2 tom tom 4096 May 23 13:24 Documents/drwxr-xr-x 2 tom tom 4096 May 23 13:24 Downloads/drwx------ 3 tom tom 4096 May 23 13:25 .gnupg/
-rw------- 1 tom tom 10764 May 27 02:29 .ICEauthority
drwx------ 3 tom tom 4096 May 23 13:24 .local/
drwx------ 5 tom tom 4096 May 23 14:34 .mozilla/
drwxr-xr-x 2 tom tom 4096 May 23 13:24 Music/
drwxr-xr-x 2 tom tom 4096 May 23 13:24 Pictures/
-rw-r--r-- 1 tom tom 807 May 23 13:20 .profile
drwxr-xr-x 2 tom tom 4096 May 23 13:24 Public/
drwxrwxr-t 2 tom tom 4096 May 23 14:03 shared-drives/
drwx------ 2 tom tom 4096 May 23 13:25 .ssh/
-rw-r--r-- 1 tom tom 0 May 23 13:27 .sudo_as_admin_successful
drwxr-xr-x 2 tom tom 4096 May 23 13:24 Templates/
drwxr-xr-x 2 tom tom 4096 May 23 13:24 Videos/
-rw------- 1 tom tom 1791 May 25 14:33 .viminfo
drwx------ 2 tom tom 4096 May 23 14:49 .vnc/
-rw------- 1 tom tom 57 May 23 14:50 .Xauthority
-rw-r--r-- 1 tom tom 14863 May 23 14:57 .xorgxrdp.10.log
-rw-r--r-- 1 tom tom 18968 May 23 14:49 .xorgxrdp.10.log.old
-rw------- 1 tom tom 19112 May 23 14:50 .xsession-errors
root@ubuntu-1804:~#
You can see that some lines have been concatenated after previous lines without keeping the newline. This only seems to happen with defaultSSHApp = true set and while SSH'd into another machine.
I am currently working around his by setting it to false. To be honest, I don't know what difference that makes to me as a user, other than that copy / paste now works. Some clarification on this in the documentation would be nice.
Scratch that. Even with defaultSSHApp = false
this still happens sometimes..... Updating issue title.
This is also happening to me on Windows 10 with 2.1.0-canary.1 but it's been happening for a few months now. I'm not sure if it helps but I'm always using tmux so I had thought this whole time that it was just tmux screwing it up.
My problem might be related. When I select and copy multiple lines the newlines are not copied at all; if I paste it into emacs or any editor on my host machine every line is concatenated with no spaces between them.
Currently switching to default ubuntu shell and attaching to tmux whenever I need to copy/paste something, FeelsBadMan.
Apologize if I'm being daft here, but is this issue the same as me not being able to copy a single line of shell output that spans several viewport lines and paste it as a single line? When I do this, newlines are pasted where the "boundaries" of the viewport were. So, I have a script that generates a single command I need to execute, I select it with my mouse, copy, then paste it, and instead of pasting it as one line as the original output was, it's turned into multiple lines, wreaking havoc?