How to set a custom command in Geany when the custom command is actually a python script that i have created? The python script handles the first system argument and prints the result to std output.
I have set the custom command but i can't find out how to set the text argument. The script runs without passing the selected text. Or more precisely, the python script never gets the selected text. Can anyone see how to fix this?
So the reference for this Geany property is found here: http://www.geany.org/manual/current/...ustom-commands
Edit: I forgot to reduce the problem. Here's a very simple sample script.
The custom command i set: "python /home/<username>/Python/parens.py"
Code:#!/usr/bin/env python # -*- coding: utf-8 -*- import sys args = sys.argv[1:] if args: print "(" + args + ")"