Sublime Forum

Piping to subl command line tool changed in ST4

#1

Previously, I could do some debugging of scripts using:

myCommandThatGeneratesOutput | subl

It looks like with ST4, I need to be explicit about it expecting input from standard in:

myCommandThatGeneratesOutput | subl -

I’m not sure if that was by choice, or just an unfortunate side effect of some other changes. It would be nice if that were reverted … or at least documented somewhere.

(Mac OS X Catalina, BTW)

edit: I’ll also add that command | subl - doesn’t always seem to work either. Sometimes it’ll open ST4 with the output as a new document, sometimes it’ll do nothing. It seems to work much more consistently if ST4 isn’t running. If it is running when I try piping output to subl - I’d say it works about half the time.

0 Likes

#2

According to https://github.com/sublimehq/sublime_text/issues/4310#issuecomment-851111888, it works before by accident. It’s indented to be subl -. But it looks like the staff is considering something now as they think there are many people affected by this.

subl --help
0 Likes

#3

Related issue

0 Likes