Skip to content

Kitten clipboard non-deterministically copies/truncates big scrollback when piped tab @text by keybinding #1693

Closed
@ronjouch

Description

@ronjouch

To copy the whole scrollback to the clipboard, I use

map kitty_mod+a pipe @text tab kitty +kitten clipboard

With a small scrollback it works great, but with a big scrollback it consistently fails to copy the whole scrollback, instead truncating the end of the scrollback at non-deterministic positions 😕.

For example, after ls -la /usr/bin (2800 lines), when pressing kitty_mod+a,

  1. First press yields 2122 lines
  2. Second press yields 317 lines
  3. Third press yields 2635 lines

I'm using kitty master @ 4faf71b under Ubuntu 19.04, my shell is fish 3.0.2 .


Note: this is a followup of [Help] Map key to copying whole scrollback to clipboard, where I asked for advice to achieve the same result, using xclip/xsel. It worked, until it didn't, for reasons I didn't investigate, so I moved to kitten clipboard and was happy, then I noticed this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions