Hi List-o-mate,
I've starting writing my own snippets and can use the whole, "${1:insert stuff}" ok now, but I wondered if there was a way to open a File Browser window?
eg, my current html img snippet is,
<img src="${1:assets/images/${2}}" alt="${3:$2}" />
but it'd be cool to have,
<img src="${1:FILE_BROWSER}" alt="${2:alt_text}" />
Thank you,
DanC
Hi Dan,
On May 9, 2007, at 9:22 AM, Dan Course wrote:
Hi List-o-mate,
I've starting writing my own snippets and can use the whole, "${1:insert stuff}" ok now, but I wondered if there was a way to open a File Browser window?
eg, my current html img snippet is,
<img src="${1:assets/images/${2}}" alt="${3:$2}" />
but it'd be cool to have,
<img src="${1:FILE_BROWSER}" alt="${2:alt_text}" />
If I understand correctly what you are trying to achieve, then I think it is better to write a drag command instead, that recognizes the various image files. Then you can locate the images with something like Launchbar of Quicksilver, which are in my opinion better suited for the job, and just drag the image into the document, and then an appropriate snippet will be created. You can even go as far as having it automatically set dimensions, or something like that, using info from the image.
You might also want to have a look at the ImageBrowser bundle.
Thank you,
DanC
-- danCourse www.dancourse.co.uk 07790 13 83 23
Flash2.0 & PHP Freelancer
Haris Skiadas Department of Mathematics and Computer Science Hanover College