This is an old revision of the document!
Paste Selection in http://ix.io
This script use curl and xsel to makes Geany paste your editor selection in http://ix.io and return the url in your clipboard.
Download the script below - you will need to chmod u+x geany-ix-io.sh for make the script executable.
Add the custom command to Geany: Edit → Format → Send Selection To → Set Custom Commands → Add
Type the name of script (geany-ix-io.sh) or optionally you can write the whole custom command here:
sh -c “curl -s -F 'f:1=←' ix.io | xsel -ib; exit 1”
Both, the script version or one liner command will work very well.
- geany-ix-io.sh
#!/bin/bash # The script need be in path or you will need specify complete script path # in Custom Commands Add box. sel=$(< /dev/stdin); curl -s -F "f:1=$sel" http://ix.io | xsel -ib echo -n "$sel"; exit 1