atg / chocolat-public

Public bug tracker for the private chocolat project
http://chocolatapp.com
180 stars 4 forks source link

Truffles, commands : output misbehave #999

Open ghost opened 12 years ago

ghost commented 12 years ago

Version:

1.0

Issue:

Truffles > commands > output does not behave correctly:

it does not respect the fallbackInput conditions e.g. the following command does not replace the $TM_CURRENT_LINE if $TM_SELECTED_TEXT==''

(input selection line)
(output replace-selected)

(ouput snippet) does not replace the selected text (it works as Insert as Text in TextMate)

How to reproduce:

the following command inserts the text instead of replacing the ${TM_SELECTED_TEXT:-$TM_CURRENT_LINE}

(trigger)
(name [Comand Name])
(input selection line)
(output snippet)
(script [echo "<command-output>"])

Dupes:

530, #536, #920

ghost commented 12 years ago

updated version to 1.0