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/improve copy to clipboard #118
Feat/improve copy to clipboard #118
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I've added some comments
Hello @Ninjani, does it means that you want to support only one command by OS and just override the default command by the configuration field ? |
Yes, that's what I had in mind, that way it's easy to swap out with xsel or wl-copy or anything the user wants. What do you think? |
Sounds good too, maybe a bit harder to handling the errors properly but more generic. I think an example in the |
I think that I will also add an error kind for the case of we are on a non supported OS by default copy command |
cf69edd
to
ccd658e
Compare
I will update the |
@Ninjani Any update about this topic? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry got caught up with work. Looks pretty good, just a minor change and we're good to go I think.
ccd658e
to
2c606ee
Compare
No problem we are all busy :) |
Looks good! Would you like to update the README and CHANGELOG? |
Yes I will do it ! |
Done. I also added an example with |
Adding a new field (`copy_cmd`) in the default configuration and in the configuration file. It allows to easily add a new copy command. Signed-off-by: Jean-Pierre Geslin <jarsop@outlook.com>
Signed-off-by: Jean-Pierre Geslin <jarsop@outlook.com>
c887cde
to
4be6eb6
Compare
Signed-off-by: Jean-Pierre Geslin <jarsop@outlook.com>
4be6eb6
to
35d45cd
Compare
Thanks @Jarsop I'll make a new release this weekend |
Adding a new field (
copy_cmd
) in the default configuration and in the configuration file.It allows to easily add a new copy command.