zsh-vi-mode icon indicating copy to clipboard operation
zsh-vi-mode copied to clipboard

Yank to system clipboard

Open brorbw opened this issue 2 years ago • 6 comments

A very preliminary stab at using the system clipboard for cutting, deleting and yanking. This does contain code for getting the system clipboard but I think that requires a bit more thought than I want to pour into this ATM.

The code is more or less "borrowed (read: stolen)" from https://github.com/kutsan/zsh-system-clipboard/blob/master/zsh-system-clipboard.zsh#L13-L87

brorbw avatar Sep 24 '22 14:09 brorbw

will this be merged?

niksingh710 avatar Dec 27 '22 11:12 niksingh710

@jeffreytse I understand. I use this locally because otherwise it zsh-vi-mode breaks my workflow compared to other applications with a vim mode. I thought that if nothing else this could serve as an easy starting point for an implementation 🤷🏻

brorbw avatar Jan 01 '23 21:01 brorbw

@brorbw i mean we have this already - https://github.com/ohmyzsh/ohmyzsh/blob/master/lib/clipboard.zsh. Is it not possible to integrate it with this plugin ?

asmodeus812 avatar Jan 15 '23 06:01 asmodeus812

@asmodeus812 I didn't know that existed. Yes it should make this implementation much easier

brorbw avatar Jan 16 '23 11:01 brorbw

@jeffreytse would using hmyzsh/ohmyzsh@master/lib/clipboard.zsh be the flexible solution you are looking for?

brorbw avatar Feb 20 '23 01:02 brorbw

@jeffreytse would using hmyzsh/ohmyzsh@master/lib/clipboard.zsh be the flexible solution you are looking for?

hope this sees some action sooon :)

effinsky avatar Mar 23 '23 09:03 effinsky