kutsan / zsh-system-clipboard

System clipboard key bindings for Zsh Line Editor with vi mode. It is similar to what `set clipboard=unnamed` does for vim.
GNU General Public License v3.0
149 stars 16 forks source link

Add option to copy to clipboard only with explict yanks #30

Closed xiruizhao closed 4 years ago

xiruizhao commented 4 years ago

Sometimes you just want to delete a line and don't want it to pollute your system clipboard. This option probably should also disable pasting from clipboard with vim puts, since you presumably want to use zsh's register for editing purposes. You can still paste from system clipboard with Cmd+V on macOS, not sure for other platforms.

xiruizhao commented 4 years ago

Never mind, I'll just fork and do my own thing. Great work!

doronbehar commented 4 years ago

@xiruizhao we maybe somewhat support the behavior you desire, and I'm personally using this configuration which is documented in the README. See https://github.com/kutsan/zsh-system-clipboard#configuration