tonylukasavage / triple

REPL for Titanium
MIT License
96 stars 21 forks source link

Better handling of saved files #86

Closed tonylukasavage closed 9 years ago

tonylukasavage commented 9 years ago

After completing implementation of #81 to add the $F() shorthand for accessing files I thought up a less clunky solution. The added filenames should be cached and those filenames should be used in a regex. If the filename string is found, replace if with the full Filesystem path, kinda like this:

'myfile.png' --> Ti.Filesystem.applicationDataDirectory + 'myfile.png'