Project: aptanastudio
Issue APSTUD-3567: SELECTED_TEXT in snippet doesn't work as expected
Assume the following snippet: {code} snippet 'Ti.API.debug' do |s| s.trigger = 'd' s.expansion = 'Ti.API.debug(${0:${TM_SELECTED_TEXT}})' end {code} If you type d+TAB, it inserts: {code} Ti.API.debug(}) // (note the extra '}') {code} If instead, you select some text and select the snippet from a menu item, i.e.: # Type and select "fred" # Select Ti.API.debug from a menu it will insert: {code} "fred"Ti.API.debug(}) {code} Expected is: {code} Ti.API.debug("fred") {code}
Story points: 13