Re: [Github-comments] [geany/geany] [Feature request] Support different combinations of I/O in Custom Commands (#1037)

2016-10-20 Thread Colomban Wendling
@andy5995 BTW, if you got Python installed, you could simply do: `python3 -c 'from sys import stdin, stdout; stdout.write(stdin.read().title())'` (I recommend using Python 3.x that doesn't need extra care to properly handle Unicode input here) -- You are receiving this because you are

Re: [Github-comments] [geany/geany] [Feature request] Support different combinations of I/O in Custom Commands (#1037)

2016-10-20 Thread Colomban Wendling
@andy5995 The current data is sent to the command's `stdin`, so you should read that, not the command-line arguments. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Github-comments] [geany/geany] [Feature request] Support different combinations of I/O in Custom Commands (#1037)

2016-10-20 Thread Andy Alt
I wanted to highlight a selection, and have it capitalize the first letter of each word. I tried doing this through Custom Commands. I wrote this ``` #include #include #include int main(int argc, char **argv) { char word[256]; int i; for (i = 1; i < argc; i++) { strcpy (word,

[Github-comments] [geany/geany] [Feature request] Support different combinations of I/O in Custom Commands (#1037)

2016-05-14 Thread Mikhas Varantsou
It would be useful for me if output from Custom Command was inserted in cursor's place. Now it's impossible. If you wasn't select any text, output [replaces the whole line](http://www.geany.org/manual/current/index.html#sending-text-through-custom-commands). So my request is: please solve this