-
Notifications
You must be signed in to change notification settings - Fork 57
feature: Support for copy to clipboard #39
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
Conversation
| } | ||
| break; | ||
| case 'copy': | ||
| clipboard.writeText(message.item.arg); |
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.
We should add the following as well (later on):
- a confirmation dialog that the value has been copied to clipboard
thunkcallback style support so plugins who implement thisactioncan act accordingly when the action is done. This should actually not be specific tocopybtw
|
Great addition. I think it would be best if this functionality could be implemented aside to the main action when the user uses cmd+c for OS X and ctrl for the other platforms. This would preserve the I'm not sure how Alfred structures this in their JSON schema at the top of my head but would need to look into it. I would figure it would be a property per result item. A prime example would be the calculator plugin where the action could just open the native calculator app and cmd+c would copy it to clipboard. |
|
okay.. hmm, I'll have to take a deeper look into it because I can really answer that :) |
|
We'll keep it open for now until we have a better understanding on where to go with this. |
|
Alfred's schema currently supports this through a |
|
I've just merged in the initial implementation of the clipboard functionality here: 7c13a0e. This enables users to use the normal: cmd + c to copy an item into their clipboard. It would retrieve |
|
Cool! looks like we can close this PR, then |

This PR adds the feature to support for plugins to copy their values to clipboard upon execution.
I added documentation on the keys that I could explain sufficiently, as well which is why I left out
helpersandexecute