Open orifmilod opened 3 years ago
Make sure you have access to clipboard enabled here:
@gnachman I already had checked this box :)
@gnachman Any help please, Thanks
Please file an issue at https://iterm2.com/bugs and include a debug log as described in the new issue template. I'll try to get to it quickly since you've been waiting so long!
I have the same issue with neovim v0.4.4, Vi(v8.1.1401) is okay. nvim and vi don't have any plugins and settings
@4volodin Please see my comment from Apr 22
@4volodin Please see my comment from Apr 22
I created an issue here https://gitlab.com/gnachman/iterm2/-/issues/9816
@gnachman Any help please, Thanks
hi, I just found it2copy can work good in vim but not in nvim, so I would like to use vim , althought I have used nvim for a not short time, :), hope some one can fix the bug
I can't even git it to run the custom copy command, but based on the issue that @4volodin filed it seems like nvim doesn't pass the output from the command through to the terminal emulator. Instead, it escapes it for human consumption. Can someone who can actually get nvim to run the custom copy command file a bug against nvim for this?
Nvim is messing up the output from it2copy
instead of sending it directly to terminal. See https://github.com/neovim/neovim/issues/1496.
I managed to redirect the output:
:w !it2copy>$SSH_TTY
Lua config:
vim.g.clipboard = {
name = 'iTerm2 copy',
copy = {
['+'] = {'bash', '-c', 'it2copy>$SSH_TTY'},
['*'] = {'bash', '-c', 'it2copy>$SSH_TTY'}
},
paste = {['+'] = 'true', ['*'] = 'true'}
}
@wangweixuan solution works for me if I directly SSH into a host. If I am using tmux -CC
tmux integration then I get the following error:
** tmux mode started **
Command Menu
----------------------------
esc Detach cleanly.
X Force-quit tmux mode.
L Toggle logging.
C Run tmux command.
Unrecognized command from tmux. Did your ssh session die? The command was:
Ptmux;]1337;Copy=:dmltLmcubG9hZGVkX25ldHJ3ID0gMQo=�\%extended-output %12 0 : \033[54;69H \033]112\007\033[2 q\033[5;7H\033[34h\033[?25h
Detached
%exit
I am trying to yank text from nvim but I cannot do it using it2copy. Anyone successful with configuring
g:clipboard
withit2copy
. So I should be able to pipe yanked text intoit2copy
My clipboard config:
I also tried runnig
:w !it2copy
and it spits out this output, notice that it actually copies the file but in base64 format: Here is the screen shotHere is the text version (