On 7/9/09 1:22 PM, in article C67FC258-14A9-4280-BBFA-61BA0253F773@textmate.org, "Allan Odgaard" mailinglist@textmate.org wrote:
On 9 Jul 2009, at 21:42, Matt Neuburg wrote:
[...] is there a way I can detect whether we are currently set to Create New Document or Show As HTML? [...]
There is no API to obtain this info, sry.
This is the only bad part. :) May I submit this as a feature request? Pls let me know if you need a motivating story... m.
Better suggest what sort of API you want.
Well, as you know, there is already a set of exit codes that can be set (exit_codes.rb) to indicate where we *should* produce our output. I guess I was hoping there might be some environment global indicating where the currently running command was *intending* to produce output.
case ENV['TM_OUTPUT'] when 205 ... else ... end
m.