Skip to content

Clipboard wiki page should mention allow-passthrough option #4214

Closed

Description

@graham33

Clipboard wiki page should mention allow-passthrough option

I recently spent some time trying to get set-clipboard to work, to eventually discover that I needed to set the allow-passthrough option as well. It would be nice if https://github.com/tmux/tmux/wiki/Clipboard mentioned this.

I don't believe I can edit the wiki myself, but let me know if that's not the case, I'm happy to.

Required information

Please provide the following information:

  • tmux version (tmux -V). tmux 3.5a
  • Platform (uname -sp). Linux unknown
  • $TERM inside and outside of tmux (echo $TERM). tmux-256color, xterm-kitty
  • Logs from tmux (tmux kill-server; tmux -vv new). n/a

Activity

  1. nicm commented on Oct 26, 2024

    @nicm
    Member

    allow-passthrough is not required for set-clipboard.

  2. graham33 commented on Oct 26, 2024

    @graham33
    Author

    allow-passthrough is not required for set-clipboard.

    Interesting, it seems to be required in my case. Note that what doesn't work without it is OSC52 from applications run within tmux (i.e. set-clipboard on, not external), copying from tmux itself to the system clipboard via OSC52 works fine without it. It made sense to me that this might be blocked based on the description of allow-passthrough.

  3. nicm commented on Oct 26, 2024

    @nicm
    Member

    Probably whatever applications you are using are using the bypass sequence rather than just setting the clipboard normally.

  4. graham33 commented on Oct 27, 2024

    @graham33
    Author

    Probably whatever applications you are using are using the bypass sequence rather than just setting the clipboard normally.

    It's just Emacs using clipetty, which is hopefully not doing anything too unusual. I also noticed that https://github.com/theimpostor/osc has an explicit check for allow-passthrough, which implies I'm not the only one to encounter this.

    Anyway, happy to close this if you think it's not a general issue, just thought it would be worth flagging. Thanks!

  5. crzcrz commented on Oct 27, 2024

    @crzcrz

    Emacs' built-in xterm.el fully supports OSC52 clipboard access, there's no need in extra packages, they only cause issues.

  6. github-actions commented on Nov 27, 2024

    @github-actions

    This issue has been automatically locked since there has not been any recent activity after it was closed.

  7. locked as resolved and limited conversation to collaborators on Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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