@elextr done, but there's a problem with this solution: these custom commands are intended to replace selected text or the current line with the output of the command, so a part of the actual document vanishes after executing it with the assigned shortcut. I tried to add an 'echo $1' to the bash script that is executed, but it doesn't work. Any suggestion to allow a normal execution of the external command without altering the original text document?