tonylukasavage / triple

REPL for Titanium
MIT License
96 stars 21 forks source link

added file shorthand for non-iOS systems #81

Closed tonylukasavage closed 10 years ago

tonylukasavage commented 10 years ago
> .add pic.jpg
undefined
> var image = Ti.UI.createImageView({ image: Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'pic.jpg') }); 
undefined

would become

> .add pic.jpg
undefined
> var image = Ti.UI.createImageView({ image: $F('pic.jpg') }); 
undefined

or something similar.

tonylukasavage commented 10 years ago

Also, make sure to add a note to the .add resulting output to let developers know they need to wrap the files.