On Nov 23, 2007 1:59 PM, Jelle de Jong jelledejong@powercraft.nl wrote:
Does somebody knows how to sent a selection of text to a custom command?
Go to the menu: Edit->Preferences->Tools->Commands->Context Action:
And enter this in the box: geany-action.sh %s
Then you can create a script named "geany-action.sh" somewhere in your $PATH and do whatever you want to with it, for example it could say one of these:
wterm -e $@ epiphany $@ xpdf $@
The script will run whenever you right-click on a selection and choose "Context Action"
If you need more options you can use a tool like zenity or gxmessage in your script:
http://homepages.ihug.co.nz/~trmusson/programs.html http://freshmeat.net/projects/zenity
- Jeff