Skip to content

tmux-yank stops working after one yank when tmux-copycat is present. #121

Closed
@gregorias

Description

@gregorias

I've noticed that "y" and "Y" keyboard shortcuts stopped working after one operation. That is:

  1. I have
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-yank'

in my tmux.conf
2. I enter a copy mode with <C-[> and select text.
3. I press y to copy the text.
4. I repeat steps 2. and 3., but pressing "y" and "Y" doesn't have any visible effect.

Yanking works correctly if I don't turn on tmux-copycat.

The reason they stop working is that somewhere between 3. and 4. the binding for copy-mode{-vi} {y, Y} gets switched to send-keys -X copy-pipe-and-cancel "\"\"xclip\"" -selection "\"clipboard\"\" from send-keys -X copy-pipe-and-cancel "xclip -selection clipboard".

Tmux: 2.6
tmux-yank and tmux-copycat: current HEADs
Terminal: suckless

Let me know if help is needed reproducing this bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions