On 22.08.2016, at 15:05 , Allan Odgaard <mailinglist@textmate.org> wrote:
require "#{ENV['TM_SUPPORT_PATH']}/lib/exit_codes"
⋮
TextMate.exit_discard

It is possible to disable the indent of snippet output, but in the normal case, I assume you do want the indent, as I don’t think it is possible for you to figure out what the current indent is (since your command gets a selection that doesn’t start at first column).

We could introduce a new exit_insert_as_snippet_without_indent so that a command would be able to just temporarily disable the indent.

Why not just run the normal indentation on the commands output?