vamolessa / pepper

simple and opinionated modal code editor for your terminal
https://vamolessa.github.io/pepper/
372 stars 17 forks source link

Better default `copy-command` and `paste-command` #48

Closed NNBnh closed 2 years ago

NNBnh commented 2 years ago

Pepper currently can pick commands for clipboard handling pretty fine but could be improve by supporting xclip and Wayland's wl-clipboard:

You could check out clipb a clipboard managers warper that I write (relevant code).

vamolessa commented 2 years ago

Does xclip -selection clipboard -in work on wayland? That is the default config on linux (https://github.com/vamolessa/pepper/blob/master/pepper/rc/default_configs.pepper#L59).

I think it probably makes more sense to keep it the way it is and let users who prefer to change the default clipboard manager by using the copy-command and paste-command commands in their config file.

NNBnh commented 2 years ago

Does xclip -selection clipboard -in work on wayland?

Unfortunately xsel and xclip doesn't work on Wayland.

I think it probably makes more sense to keep it the way it is and let users who prefer to change the default clipboard manager by using the copy-command and paste-command commands in their config file.

Yeah okay.