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

feat: implement getter and setter for CUTBUFFER (For example, interaction with the system clipboard) #241

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

Conversation

MuXiu1997
Copy link

@MuXiu1997 MuXiu1997 commented Aug 30, 2023

I'm considering wrapping the CUTBUFFER into getter and setter functions. This approach might minimize the extent of changes required in the existing code while also allowing other users to override these two functions to fulfill their own needs, such as interacting with the system clipboard.

For example:

# CUTBUFFER getter
function zvm_get_cutbuffer() {
  pbpaste
}

# CUTBUFFER setter
function zvm_set_cutbuffer() {
  echo -n $1 | pbcopy
}

@MuXiu1997 MuXiu1997 force-pushed the cutbuffer-getset branch 2 times, most recently from ee00178 to 9bceb9b Compare August 30, 2023 14:03
@MuXiu1997 MuXiu1997 marked this pull request as ready for review August 30, 2023 14:05
@MuXiu1997
Copy link
Author

@jeffreytse I hope to receive your advice and response.

@MuXiu1997 MuXiu1997 force-pushed the cutbuffer-getset branch 3 times, most recently from e8b9085 to e8f091b Compare December 22, 2023 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant