Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yank to system clipboard #192

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Yank to system clipboard #192

wants to merge 1 commit into from

Conversation

brorbw
Copy link

@brorbw brorbw commented Sep 24, 2022

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

@niksingh710
Copy link

will this be merged?

Copy link
Owner

@jeffreytse jeffreytse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @brorbw

Thanks for your contribution to the system clipboard implementation, I'd love for a more common and flexible implementation, and it would not involve code of other repositories in.

Thanks & Regards

@jeffreytse jeffreytse added the enhancement New feature or request label Dec 29, 2022
@brorbw
Copy link
Author

brorbw commented Jan 1, 2023

@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 🤷🏻

@asmodeus812
Copy link

@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 ?

@brorbw
Copy link
Author

brorbw commented Jan 16, 2023

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

@brorbw
Copy link
Author

brorbw commented Feb 20, 2023

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

@effinsky
Copy link

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

hope this sees some action sooon :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants