Skip to content

Ability to remove trailing whitespace in neovim captures #352

Description

@CaptaiNiveau

Hey!

I love this plugin in my Kitty life, a significant improvement over the previous default binds from Kitty :)
Recently, I've been using the scrollback quite often to effectively bridge my copy paste buffer from remote VMs over SSH.
That means I open files in neovim over ssh and can't access my local clipboard. Then, to copy text, I use the scrollback plugin.
However, neovim prints all its lines with trailing whitespaces. Those also make it into the scrollback captured by this plugin.
I could potentially fix this with some workaround for myself locally, but maybe other people run into this issue, too.

What do you think would be a good way to deal with this?
Sometimes someone might need the trailing whitespace, maybe removing the trailing whitespaces in the output can be a command flag?
Probably not too hard to implement - if you think that this is a good idea, I could also try to create a PR.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions