Hyper: Issues with copy-paste from keyboard on OS X El Capitan

Created on 28 Jul 2016  ยท  34Comments  ยท  Source: vercel/hyper

Having issues with paste using CMD-V on my OSX machine. Hyperterm flat-out refuses to acknowledge my keyboard command.

Other key commands, such as CMD-+ and CMD-- work just fine, however, as do the menu commands. I thought it was just not implemented yet, but I haven't seen any other issues with this reported on OSX, so it looks like a bug.

The only variable on my machine I can think of is that I am using http://pasteapp.me/helper, however, killing Paste altogether does not change anything.

HyperTerm 0.7.1
Electron 1.2.8
darwin x64 15.4.0

Mac Bug ๐Ÿ˜ฐ Can't Reproduce

Most helpful comment

Not yet fixed in 0.8.2

All 34 comments

If you select some text on HyperTerm you can't cmd + c it?

OK, cmd-c is working, but I don't think it was in 0.7. cmd-v is still not working.

I've been able to reproduce this bug by trying to paste something twice. The first paste works, but the second paste yields nothing.

Like @jamesfzhang, I see this when trying to paste something twice. It happens reliably when inside an SSH connection. Killing the connection and reconnecting solves the problem.

I still can't reproduce ๐Ÿ˜ฐ (Tried inside ssh, same result)
cant-reproduce

Yeah, this is super weird. Anything I can do on my end to help debug?

The console says anything? (Cmd + Option + I)

image

Only this. Interestingly, I can paste into the console. (That's what's clipped.)

Nothing from console, but if I refresh (Cmd + R), I can paste multiple times until I press enter, after which I can only paste once.

copypasta

Paste only once ? Even after adding a space after the first past ?

Maybe the same origin than #479

I'm assuming this has something to do with focus, like the paste being captured by electron vs the renderer process. Worth investigating in that direction. Potentially capturing the pasteboard from electron and passing it down for example as a paste rpc event.

Closing in favor of #479

๐Ÿ‘Ž

I don't think these issues are actually related, I can't paste even the first time.

Ops, sorry!

I didn't notice that you can't paste at all! ๐Ÿ˜ฑ

It's ok, I should've clarified sooner, I just let sort of let the other people comment. It's possible they're related, I'm just not sure yet. Very odd that I'm the only one experiencing this, my guess is there's something weird with my machine but if there is I'd like to figure it out. ๐Ÿ˜ฎ

What shell you are using? Any theme, plugin, extension or something that you are using on HyperTerm/shell? Also, anything _different_ on your .zshrc || .bashrc || .bash_profile?

on Version 0.8.1 in neovim I cannot copy/paste or select text

@brettneese You're not the only one. This happens to me constantly since updating to Sierra. I'll copy a bit of text, then go to paste it and nothing will happen. Open Terminal.app, paste the text there and it works fine. Back to Hyper.app, nothing. I see the "Edit" menu light up, but no paste.

One thing that's somewhat interesting: If I open a new tab, paste works fine. Back to the first tab, paste still doesn't work. Open Developer Tools, paste works again (inside the term). Seeing the same 'Unknown OSC Code: "1"' warning. Also, a "dead key" warning. Not sure what that's about...

screen shot 2016-10-10 at 9 55 17 am

_Note, I'm not using an international keyboard_

Edit: FWIW, I'm using the Apple wireless bluetooth "Magic Keyboard"

@matheuss Asked for these:

.zshrc (uncommented lines only)

export ZSH=/Users/adamdrago/.oh-my-zsh

ZSH_THEME="robbyrussell"

plugins=(git)

source $ZSH/oh-my-zsh.sh

.bash_profile

export NVM_DIR="/Users/adamdrago/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm
export PS1="[\t] \W \e[0;32m\$\e[m "

The vim paste issues are because of https://github.com/zeit/hyper/issues/773.

Some more info:

It seems like it's a focus issue like @rauchg said. Some test cases:

Paste fails

  1. Type git diff
  2. CMD+V

Paste fails

  1. Type anything
  2. Delete what you typed
  3. CMD+V

Paste succeeds

  1. CMD+V on a clear line

Paste succeeds

  1. Type git diff
  2. Highlight some other text in the term
  3. CMD+V

Paste succeeds

  1. Type git diff
  2. Click the line I'm typing on
  3. CMD+V

In other words, if I type at all on a line, I can't paste anymore on that line until I somehow retrigger focus. I'm hoping this is helpful. Not trying to spam this issue. Please let me know if there's anything else I can do. :)

Same issue as @atdrago. It's like hyper loses focus even though I can still type. If I click on the app a couple times and then try and paste it works. And I'm not using zsh.

Not yet fixed in 0.8.2

This happens to me all the time. Sometimes the paste works, sometimes it doesn't, but I can still type into the terminal.

Same here. It is a constant headache. As soon as I click in the terminal window the paste works.

Same problem, super annoying. I find sometimes waiting a couple seconds also makes it work.

Yo y'all, could you test on latest master? I might have introduced a fix via #1006 ๐Ÿ‘Œ

@matheuss Paste appears to work great now; I haven't been able to get a paste failure yet.

I hit clipboard testing using these methods, all passed:

  • Some ad-hoc โŒ˜-C/V testing
  • neovim * register testing
  • pbcopy/pbpaste
  • @atdrago's fail cases above

I'd encourage others to give it a try as well, just in case I've missed anything.

Thanks! This was a big blocker for my getting into hyper. ๐Ÿ’ฏ

@matheuss @jwhitley ditto. Fixed for me too!

Closing since it was fixed ๐Ÿ™Œ

How is this done in Linux? ctrl+c doesn't works neither does ctrl+shift+c

@SteveAzz There is an issue for linux. regarding those keystrokes

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cooperpellaton picture cooperpellaton  ยท  3Comments

rauchg picture rauchg  ยท  3Comments

leo picture leo  ยท  3Comments

stan-stripe picture stan-stripe  ยท  3Comments

daenuprobst picture daenuprobst  ยท  3Comments