Skip to content

Script to send the content of currently selected text to Zipline #391

Discussion options

You must be logged in to vote

Perhaps this can work for your use case:

xsel -ob | curl -H "authorization: $TOKEN" -F file=@- -F type=text/plain $HOST/api/upload

xsel -ob will read what is in the clipboard and pipe it to curl. Not sure if I can get zipline to respond with extensions like .txt or .js though...

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by diced
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants