sublime-text-shell-command icon indicating copy to clipboard operation
sublime-text-shell-command copied to clipboard

Close on success

Open markbirbeck opened this issue 10 years ago • 3 comments

From @PeterPablo:

When considering this wish [#39], please also consider to add an option to automatically close the output (buffer or panel) on success.

markbirbeck avatar Feb 12 '15 17:02 markbirbeck

Is the use for this that you simply don't want to see any output at all?

I'm wondering whether instead of having a title attribute to name output buffer, I should instead have a buffer attribute, which can either be a string that names the buffer, or null to indicate that we don't want a buffer.

Without a buffer we would effectively just discard all output. Would that achieve what you want?

(Of course, if the command fails we need to know...but we can work that out once I have better understood what you're trying to achieve.)

markbirbeck avatar Feb 12 '15 22:02 markbirbeck

My use case is the compilation of LaTex. I don't want to be bothered if compilation is successful, but am interested in the output if there is an error present.

PeterPablo avatar Feb 13 '15 10:02 PeterPablo

Seems straightforward.

My previous comment was along the lines of 'suppress all output unless there is an error', but I think I overcomplicated it since then we would then need to specify where we want the error to be written to (panel or buffer).

All that we really need is a flag that says 'if the task ran successfully suppress the output'.

A bit of thought might be needed as to how this relates to long-running jobs, though.

markbirbeck avatar Sep 16 '18 12:09 markbirbeck