[TxMt] Open file Browser
Charilaos Skiadas
skiadas at hanover.edu
Wed May 9 13:32:17 UTC 2007
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
More information about the textmate
mailing list