I tried to run something like this in "custom commands:
``` sed "s\a\g" | sort -u or sed "s\a\g"; sort -u or even sed "s\a\g" && sort -u ```
but nothing worked
I think that Custom command in geany dont support parallel or pipe commands. I think it will be a great enhancement to be added such support.
The pipelines and other operators are executed by shell, geany supports launching just one comand, not entire script.
If you need this, you can execute the shell and pass the script as argument, e.g.: `sh -c "sed "s/a//g" | sort -u"`
thanks! it works!
Closed #4085 as completed.
FWIW I'd recommend writing a proper script for "complex" commands. Sure a simple sed-to-sort pipe is fine, but don't fall into the trap of writing an entire script there, it's gonna be a lot easier for you to maintain this separately and just call it from there.
I thought script commands in geany as macros in libreoffice. To automate process. Yes, of course, i can do it from bash. But it is some clicks fewer when doing it directly from geany.
@estatistics I'm not suggesting not to use the custom command feature, but to write the actual logic in a script and call *that* scrip from the custom commad, just because it's easier to write and maintain when it's not super trivial than in the custom command dialog entry -- and potentially that when it's complex enough it can be useful to have it at hand from other places.
github-comments@lists.geany.org