How to pipe input to sublimetext on linux?
Assuming Sublime still doesn’t support opening STDIN, a straightforward solution is to dump the output to a temporary file, open the file in sublime, and then delete the file. Say you create a script called tosubl in your bin directory as follows: #!/bin/bash TMPDIR=${TMPDIR:-/tmp} # default to /tmp if TMPDIR isn’t set F=$(mktemp $TMPDIR/tosubl-XXXXXXXX) cat … Read more