zsh-vi-mode
zsh-vi-mode copied to clipboard
Yank to system clipboard
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
will this be merged?
@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 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 I didn't know that existed. Yes it should make this implementation much easier
@jeffreytse would using hmyzsh/ohmyzsh@master/lib/clipboard.zsh be the flexible solution you are looking for?
@jeffreytse would using hmyzsh/ohmyzsh@master/lib/clipboard.zsh be the flexible solution you are looking for?
hope this sees some action sooon :)