Escape sequence issue with command-v
when pasting on Mac
#6609
Replies: 2 comments 5 replies
-
(Obvious & probably already done, but have to ask) Is Ghostty's terminfo installed on the remote? Is this within any multiplexer like tmux or Zellij? I have a Linux box I can SSH to from my Mac so I can try to reproduce this as well. |
Beta Was this translation helpful? Give feedback.
-
Yeah, it's already a default binding.
cmd+v isn't handled by the shell, so that's not the problematic one. What do you have on your clipboard though? My only other guess is that this is related to bracketed paste. |
Beta Was this translation helpful? Give feedback.
-
When I SSH into a remote Linux distro that runs ZSH in Vi mode, if I paste some text (with
command-v
on Mac), it changes the case of the last letter. To me this indicates that Ghostty might issue an escape sequence that include tilde (~
), which switches the case in Vi.This looks very similar to some other issues I've found on this forum, e.g #5735 and #3151.
As a potential workaround I've tried to add this to my config:
But unfortunately that doesn't fix it.
Interestingly, the issue only occurs when I ssh into that remote machine. It otherwise works fine on my local machine.
Can you tell what I might be doing wrong, or how to work around this?
Beta Was this translation helpful? Give feedback.
All reactions