Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
config:customcmds:paste-selection-ix-io [2013/09/02 04:16] – created codebrainzconfig:customcmds:paste-selection-ix-io [2022/12/30 03:18] (current) – Copy edited (e.g. ref. <https://en.wikipedia.org/wiki/Uniform_resource_locator>). petermortensen
Line 1: Line 1:
 ====== Paste Selection in http://ix.io ====== ====== Paste Selection in http://ix.io ======
  
-This script use curl and xsel to makes Geany paste your editor selection in [[http://ix.io|http://ix.io]] and +This script uses curl and xsel to make Geany paste your editor selection in [[http://ix.io|http://ix.io]] and 
-return the url in your clipboard.+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.+Download the script below. You will need to ''chmod u+x geany-ix-io.sh'' to make the script executable.
  
 Add the custom command to Geany: Edit -> Format -> Send Selection To -> Set Custom Commands -> Add Add the custom command to Geany: Edit -> Format -> Send Selection To -> Set Custom Commands -> Add
Line 10: Line 10:
 Type the name of script (geany-ix-io.sh) or optionally you can write the whole custom command here: 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"+<code>sh -c "curl -s -F 'f:1=<-' ix.io | xsel -ib; exit 1"</code>
  
-Both, the script version or one liner command will work very well.+Both, script or one liner commandwill work very well.
  
 <file bash geany-ix-io.sh> <file bash geany-ix-io.sh>
Print/export